Symfony2 sending push notifications
<p>I am working on REST API for Android app in Symfony2. Recently I implemented sending push notifications via FCM. Everything works fine, the problem is that my implementation sends notifications normally in controller, so client has to wait for sending all notifications to get response from server, what of course leads to performance issues. Could anyone give me a hint, what is the best way how to handle notifications sending, i.e. in separate thread or some scheduler? I just don't know what are my possibilities. Thanks in advance.</p>