Laravel Message Queuing Practice
Course Introduction
Swoole Another solution. The PHP Web application driven by PHP FPM is taken as the discussion scenario.
Forerunner
-
Introduction to Message Queuing and Its Basic Use in Laravel -
Priority of Larravel message queue and implementation of failed task retry
Use Instance
-
Send mailbox verification message -
Queue priority -
Retry failed tasks -
Cancel abandoned orders -
Send Webhook to realize cross application asynchronous callback -
Cancellation of meetings and automatic refund processing -
Avoid repeated refunds through idempotent design and atomic lock -
Batch refund orders through queue -
Monitor refund task batch process -
Asynchronous processing of conference ticket payment and competitive condition processing -
Business process peak detection and data consistency -
Generate and send monthly bills regularly -
Processing API requests with access frequency restrictions -
Limit the concurrent number of queue tasks -
Limit the execution frequency of queue tasks -
Handling unstable external services through fuses -
Processing external service interface not responding -
Reconstruct service fuse through queue task middleware -
Asynchronous and efficient video upload -
Create a serverless database -
Generate complex reports based on task chain and batch processing -
Aggregating messages from different social platforms for users -
Issue coupons asynchronously through the event listener -
Send application deployment notification asynchronously
Online operation and maintenance
-
Select the correct CPU and memory configuration -
Manage queue processor processes and memory leaks -
Elastic scaling of queue processor processes -
Using Laravel Horizon to manage queue processor processes and scaling policies -
Process all failures in the queue task lifecycle -
How to select the correct message queue driver -
How to ensure high availability of Redis driven message queue -
Manage the retry of queue tasks in the production environment -
Restart the queue task processor during application deployment -
How to design reliable message queue tasks -
Push queue tasks based on Bus facade or dispatch function (Command Bus mode) -
Laravel Message Queue Configuration Reference
Serverless queue: It is based on the queue service provided by the cloud service provider, but it is almost based on the SDK and is scheduled through code.
Public account subscription
Purchase subscription service