RabbitMQ vs Apache Kafka

Source: Internet
Author: User
Tags rabbitmq

1. Why do we need MQ?

(1) Peak and fill Valley

Take the order system and settlement system scenario, if the order system calls the billing system through the RPC framework,
The amount of orders generated in the event of a peak sale can be very large, and because the order is generated very quickly,
This will inevitably cause system pressure to the settlement system, the server utilization will be high, but in the peak point of time the order volume is smaller,
The server utilization of the clearing system will be low.

By MQ, the order is stored in the MQ queue, the consumer is pulled by the way, and pull the speed has the consumer to control, then you can control the traffic to stabilize.
Thus, for the settlement system, it has achieved the purpose of peak load shifting. Or the goal of the flow control.

2. MQ Selection?

(1) Scene

Rabmq:focus on Standards (AMQP)

Kafka:focus on Application

(2) Performance

rabmq:20k-/S

kafka:100k-/S

(3) Architecture and Design

Reference:

1. How to use mq-detailed feature scenes-Wang Xindong

2. "Understanding when to use RabbitMQ or Apache Kafka"

RabbitMQ vs Apache Kafka

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.