R
R
Rodion2020-05-31 15:24:05
Django
Rodion, 2020-05-31 15:24:05

How to correctly design reminder sending services?

Hello!

I’ve probably been digging around with RabbitMQ and Celery for a whole day and still can’t understand how it works in conjunction.

There is a small Django project that, among other things, should send reminders to users (at a specific time) using Firebase Cloud Messaging . Now this is done by means of cron every minute with a check for compliance in time (which does not suit me).

How is it most correct to put it on the Celery and RabbitMQ rails (taking into account that in the context of one Dockercontainer should only have one main process associated with it)? How to make an additional service (in another Docker container) that will constantly listen to RabbitMQ for new messages, extract them and process them (getting the necessary set of key-value arguments for interacting with Firebase )?

I really hope that the question was formulated correctly and clearly. Thank you!

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