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 storing all the data of a service? ------ Solution ----------- How to make 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.