Do you want to set a queue name in the queue?

Source: Internet
Author: User
The problem is that when we push tasks to the queue, the tasks that we inevitably push are various, such as emails and text messages. when the background work process obtains tasks, the idea is often banned, and I think that the task is pushed by category, so do I need to retrieve the task by category... the problem is that when we push tasks to the queue, the tasks that we inevitably push are various, such as emails and text messages. when the background work process obtains tasks, the idea is often banned, and the idea is that I push tasks by category, so whether to obtain them by category is also necessary, then there may be multiple task processing processes at this time, the only difference is the parameter of the task category. Isn't the design good?

Reply content:

The problem is that when we push tasks to the queue, the tasks that we inevitably push are various, such as emails and text messages. when the background work process obtains tasks, the idea is often banned, and the idea is that I push tasks by category, so whether to obtain them by category is also necessary, then there may be multiple task processing processes at this time, the only difference is the parameter of the task category. Isn't the design good?

Determine based on the business scenario. if the business volume is large, it is obviously inappropriate to use a process to process the task.

We recommend that you use different queues to process different information. although parameters can be used separately, they are not conducive to the isolation and expansion of large concurrency, for example, if a service only pays attention to the text message, you can listen to the text message queue.

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.