Answer the question
In order to leave comments, you need to log in
PHP. Task queue. Schedule execution. On what to implement?
It will look something like this:
Service users will configure the message publishing schedule parameters:
1. Publish one record at a given time
2. Publish records every xx minutes
Next, select the days of the week, time and publication period.
After that, the system publishes something according to the schedule.
The question is how to organize it all, with what help (celery, mongoDB, RabbitMQ)?
I have never come across such a thing, and I want not to make a mistake with the choice.
It is assumed that there will be many users (1000+), each can set up dozens of schedules.
It may be necessary to use multiple servers to distribute the load.
The server part will be in php + mysql
Answer the question
In order to leave comments, you need to log in
Beanstalkd is able to give out tasks from the queue on a schedule, there is persistence, a very simple interface. And repetitive tasks can be implemented in client code.
ActiveMQ supports deferred and scheduled tasks. For RabbitMQ, there was also something similar , but ...
If you need to scatter tasks across servers, perhaps the most convenient options.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question