How to make a reasonable queue and prepare a queue for sending, sending, and Insite emails. What should we do? Are you ready to use memcacheq? does memcacheq only store the operation IDs of each application? For example, if an email is sent to a table, only the id of this record is saved in memcacheq. When the queue is output, it is detected from the database for delivery. That is, just using its concurrency features? Instead of making a reasonable queue
Prepare a queue for sending, sending, and Insite emails. What should we do?
Are you ready to use memcacheq? does memcacheq only store the operation IDs of each application? For example, if an email is sent to a table, only the id of this record is saved in memcacheq. When the queue is output, it is detected from the database for delivery.
That is, just using its concurrency features? Instead of storing all the data of a service?
------ Solution --------------------
Yes. However, they all have their own shortcomings and can be divided and managed based on specific content.
------ Solution --------------------
You can use gearman or redis to do this. There are many ways to do this. As long as the insertion and reading of the queue are ordered and atomic. It is reasonable.
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