In this article I gonna show how to control the throughput of a queue in a distributed queue based systems or, in a simpler language, how to set its rate limit. As an example I'll take python and my favorite Celery& RabbitMQ kit, although the algorithm can be implemented on any other stack