Hi folks.
I maintain a Laminas MVC project which has a small number of users but due to significant increase in transactions, the amount of data has also grown and the reports that are being generated are currently taking longer to be completed. This is to a point where we had to increase time out settings, indexing database more regularly. The MVC project also uses Doctrine ORM. After doing some research, I’m considering using the Symfony Messenger component to process report generation requests asynchronously. It happens to have support of using Doctrine to store the messages, which I think should be able to work well with the Doctrine ORM.
I’d like to know if any one has succeeded in using this Symfony Messenger component with Laminas MVC.
I have also thought of the option of triggering events but I’m not familiar with the mechanism behind EventManager to know whether Events will be processed truly in async fashion (in separate threads/process by the web server (php-fpm).