How to make a reasonable queue

Source: Internet
Author: User
How to make a reasonable queue
Ready to do a queue, to deal with mail delivery, SMS issued, the station letter and so on. How to do it?
Ready to use Memcacheq, Memcacheq just save the operation ID of each application? For example, to send a message to a table, MEMCACHEQ only the ID of the record. Out of the queue and then isolated from the database to do the release.

That is, just using its concurrency characteristics? Rather than putting the data of a business into existence?

------Solution--------------------
All can. But all have their own shortcomings, can be based on the specific content of divide and conquer
------Solution--------------------
Can be done with Gearman or redis, there are many ways to do it. As long as the queue is inserted and read in an orderly, atomic. is reasonable.
  • 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.