flâneur — a map of the web's best reading

RabbitMQ tutorial - Work Queues — RabbitMQ

rabbitmq.com · 2,172 words · saved by 1 readers

This tutorial assumes RabbitMQ is installed and running on localhost on the standard port (5672). In case you use a different host, port or credentials, connections settings would require adjusting. If you're having trouble going through this tutorial you can contact us through the mailing list or RabbitMQ community Slack. As with other Python tutorials, we will use the Pika RabbitMQ client version 1.0.0. In the first tutorial we wrote programs to send and receive messages from a named queue. In this one we'll create a Work Queue that will be used to distribute time-consuming tasks among multiple workers. The main idea behind Work Queues (aka: Task Queues) is to avoid doing a resource-intensive task immediately and having to wait for it to complete. Instead we schedule the task to be done later. We encapsulate a task as a message and send it to the queue. A worker process running in the background will pop the tasks and eventually execute the job. When you run many workers the tasks wi

On this page Work Queues ​ (using the Pika Python client) ​ info Prerequisites ​ This tutorial assumes RabbitMQ is installed and running on localhost on the standard port (5672). In case you use a different host, port or credentials, connections settings would require adjusting. Where to get help ​ If you're having trouble going through this tutorial you can contact us through GitHub Discussions or RabbitMQ community Discord . Prerequisites ​ As with other Python tutorials, we will use the Pika RabbitMQ client version 1.0.0 . What This Tutorial Focuses On ​ In the first tutorial we wrote progr

Explore this link on the map →

related reading