Answer the question
In order to leave comments, you need to log in
What to do if the event queue in Laravel overflowed?
There is a web application with customer tracking.
The dispatcher needs to more or less in real time observe the movement of customers on the map.
All movements fall into the Laravel event queue, which, with a large number of clients, overflows and does not have time to process events.
There is a solution to rethink the architecture of the application, but I would like to know if there is any solution for such situations?
Answer the question
In order to leave comments, you need to log in
JhaoDa
the number of workers needs to be increased
It became a temporary solution. I hope this is what you need and you won’t have to rewrite the architecture.
I solved a similar problem through redis in the middle.
1) without queues.
2) The most recent position of the client is stored in a radish.
3) client positions are accumulated in radishes and sent to mysql by cron every 10 minutes.
But my task is only to store the coordinates and display the last point. For your task, change the type of storage a little, and choose simultaneously from the radish and the database on request.
Well, after all, the queue is also needed in order to create .... a queue of tasks for execution so that they are exactly executed.
which listing? You have a screenshot and queue execution logs there, nothing gets there until the task has at least begun to be processed, and until that moment it silently hangs in the queue.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question