芹菜工人,芹菜打败,消息经纪人的角色是什么?

时间:2014-04-09 02:01:03

标签: redis rabbitmq celery

关于celery / redis / rabitmq / etc的大多数教程都是关于设置而不是概念。

我将在下面描述我所知道的内容,如果我错了请帮我解决,或者让我知道一个关于这个问题的好教程页面。

-> event happen (user did something and web server knows)
-> message goes to the message broker (redis/rabitmq)
-> message broker gives message to celery-worker for him to work
-> if he fails, he reports back to the broker, and broker deals with it

-> (periodic task) celery-beat says it's time to work
-> celery-beat gives the work to celery-worker (or through message broker?)
-> same as above

0 个答案:

没有答案