What does laravel queue mean and how it works?

Source: Internet
Author: User
What does laravel queue mean, how it works, and in what scenarios will it be used? What does laravel queue mean, how it works, and in what scenarios will it be used?

Reply content:

What does laravel queue mean, how it works, and in what scenarios will it be used?

The queue here should be a message queue. queue operations include queuing and queuing. That is, you have a program that generates content and then queues (producers)
Another program reads the content, and the content goes out of the queue (consumer ).

When should the queue be used?

When you do not need to obtain results immediately, but the concurrency cannot be infinitely large, it is almost the time when you need to use message queue.

The most common problem is the push notification of the App. when the App user group triggers many operations, it should notify the target user, it is impossible to execute the push code in each operation, which will reduce the processing speed of this interface. you do not need to know whether the target user can be notified if the operation is successful, instead, insert the operation data to a bucket (Memcache,Redis), And then start a process to execute the data push in the storage.

Laravel 5.2 service-queue

It is the queue in the data structure. The typical operation method is first-in-first-out, which can be used for all tasks with such requirements.

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.