For large PHP applications, what applications are usually used for message queue?

Source: Internet
Author: User
I have been using Redis for Message Queue. I suddenly thought, will it be better? I have been using Redis for Message Queue. I suddenly thought, will it be better? Reply content: We use beanstalk, qps1000 or so. if it is a simple queue service, we suggest beanstalkd (small, good performance). if it is high-availability and massive, kafka can be used. It is better to first point out what aspects of the existing solution are not good enough. Does this problem have nothing to do with PHP? More business scenarios are considered for the selection of message queues:

* Performance, such as the number of messages per second. if you have tens of thousands of messages per second, the Beanstalk and RabbitMQ columns cannot be used directly.
* Reliability: can messages be lost? Persistence required?
* High Availability: Can I tolerate downtime?
* Need to be distributed?
* O & M costs: Is your company's development (O & M) capable of maintaining this message queue?
* Supported by the client. this is the language level. For example, Kafka is a good message queue, but its PHP client is not well written and it is difficult to re-write it by yourself. Therefore, you must be careful when selecting Kafka.

After balancing these factors, we can determine how to choose.
Message queue
Performance Comparison: http://bravenewgeek.com/dissecting-message-queues/ Redis and rabbitmq use redis and rabbitmq depending on your application scenarios. generally, redis is relatively simple, but redis cannot process messages normally, other processes can still process the message, that is, there is no process to complete the confirmation of the message.
For a complete message queue, gearman and rabbitmq are all good. Php-resquegearman. If you want to avoid message loss across networks, you can also select kafkaworkerman

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.