Message Queue ideas in the distributed big data environment of ribbitmq

Source: Internet
Author: User

For ribbitmq message queues

Usage:

Define a queue as a message queue

Producer, add production messages to the queue

Consumer, after listening to a message in the message queue, retrieve the message to process the message

 

You can configure multiple consumers to process messages on each server.

The consumer object added to handler is similar to the observer mode.

Can it be changed to "handler", "consumer object holding", and "consumer object holding" factory or pool holding "?

When a consumer thread is started to execute a task, the main thread or the listener thread is enabled to monitor the message processing speed. Based on the message processing speed, the consumer factory is called, generate more consumers to process tasks

 

Similarly, if it is a server cluster, microservice can be started very quickly when microservices are prevalent today,

You can also configure a listening server to monitor the speed of tasks processed by each message queue,

Then, start more servers to process tasks based on the message processing speed.

 

Message Queue ideas in the distributed big data environment of ribbitmq

Related Article

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.