Why do we need to use rabbitmq

后端 未结 7 1860
萌比男神i
萌比男神i 2020-12-07 20:28

Why do we need RabbitMQ when we have a more powerful network framework in Python called Twisted. I am trying to understand the reason why someone would want to use RabbitMQ.

7条回答
  •  独厮守ぢ
    2020-12-07 20:51

    RabbitMQ works on message queueing technologies like AMQP which helps keep things clean and latency-free.

    And the best scenario to make use of RabbitMQ is for background processing of data which can take more time to be processed and cannot be served over HTTP. For example, if you want to download a report from your web app. And that report generation takes like 15-20 mins to be processed and get downloaded. Then in that case you should be pushing the download request to the RabbitMQ queue and then you should be expecting that report to be delivered to you via email or notification.

    To know about exactly how RabbitMQ works or how it solves such use cases you should check out this YouTube video - https://youtu.be/vvxvlF6CJkg and https://youtu.be/0dXwJa7veI8

提交回复
热议问题