message-queue

How to stop subprocesses that communicate with the main process through request and response queues?

How to stop subprocesses that communicate with the main process through request and response queues? Question: I have a Python program that starts N subprocesses (clients) which send requests to and listen for responses from the main process (server). The interprocess communication uses pipes through multiprocessing.Queue objects according to the following scheme (one queue per …

Total answers: 2

Getting number of messages in a RabbitMQ queue

Getting number of messages in a RabbitMQ queue Question: We’re using amqplib to publish/consume messages. I want to be able to read the number of messages on a queue (ideally both acknowledged and unacknowledged). This will allow me to show a nice status diagram to the admin users and detect if a certain component is …

Total answers: 3

Why use Celery instead of RabbitMQ?

Why use Celery instead of RabbitMQ? Question: From my understanding, Celery is a distributed task queue, which means the only thing that it should do is dispatching tasks/jobs to others servers and get the result back. RabbitMQ is a message queue, and nothing more. However, a worker could just listen to the MQ and execute …

Total answers: 3

What's a good rate limiting algorithm?

What's a good rate limiting algorithm? Question: I could use some pseudo-code, or better, Python. I am trying to implement a rate-limiting queue for a Python IRC bot, and it partially works, but if someone triggers less messages than the limit (e.g., rate limit is 5 messages per 8 seconds, and the person triggers only …

Total answers: 12

Advice on Python/Django and message queues

Advice on Python/Django and message queues Question: I have an application in Django, that needs to send a large number of emails to users in various use cases. I don’t want to handle this synchronously within the application for obvious reasons. Has anyone any recommendations for a message queuing server which integrates well with Python, …

Total answers: 8