K
K
Konstantin Kruglov2015-10-26 22:33:46
Message Queues
Konstantin Kruglov, 2015-10-26 22:33:46

How to distribute celery code to servers?

The question may not be correct, but something does not come to mind right.
Django project. The user fills out the form and submits it to the server. On the server, the form is written to the database and the task is thrown into RabbitMQ. And somewhere on the server there is an agent connected to the queue and waiting for data to be processed.
Then obviously everything will become more complicated and I decided to use something standard - Celery. But when I began to delve into the study of the issue, it turns out that the same code will need to be kept both on the site and on the agents where everything will actually be executed. And I understand that there are no special options. Or have I misunderstood something?
Those. in fact, I need to separate what sends and what receives and executes. Of course, you can write everything yourself by working directly with RabbitMQ, but debugging is much more difficult. That's why I decided to try celery, which is praised by many. Can under my tasks it is necessary to use something another?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question