Slow Performance of Amazon SQS compared with RabbitMQ

爷,独闯天下 提交于 2019-12-09 10:16:55

问题


I wanted to integrate a message queuing middle tier in my web application. I have tested Rabbitmq as well as Amazon SQS but find Amazon SQS is slow. I am getting 80 req/sec in Amazon SQS where I am getting 2000 req/sec in Rabbitmq. I am asking this Question because I am more interested Amazon SQS since I am using all the services of Amazon for my web app. Can anybody please tell me why this is so slow? Or if anybody has any good benchmark of Amazon SQS can you please share? Any help will be appriced.


回答1:


According to this article you can run RabbitMQ on Amazon AWS (EC2) and it will be faster and possibly cheaper, there is a message per second and a financial comparison. There are some other howto guides on the RabbitMQ site




回答2:


One thing to keep in mind here is that SQS is replicating your data across multiple AZ's. This is going to add to the time complexity compared to a single Rabbit or other MQ implementation.

If your single RabbitMQ instance goes down, are you ok with not being able to process messages or potentially losing data? If you are, you probably don't need replication or even disk persistence. But I'm guessing most use cases would care and thus, SQS offers a very hands off distributed MQ solution that is, in theory, insulated from a single point of failure.



来源:https://stackoverflow.com/questions/10513317/slow-performance-of-amazon-sqs-compared-with-rabbitmq

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!