Label: Message Queue

48 results found

Laravel Queue System Configuration Reference

Laravel Message Queuing Practice Online operation and maintenance

Processor process The following configurations are set when the queue processor process is started. Queue connection Specify the queue connection when starting the queue task processor process: php ar...

Published by Xueyuan Jun 3 years ago    Number of views: 6828    Number of likes: 2

Push queue tasks based on Bus facade or dispatch function

Laravel Message Queuing Practice Online operation and maintenance

Push task to queue In Laravel, tasks are pushed to queues mainly through Command Bus. We can act as an agent for C through the Bus facade

Published by Xueyuan Jun 3 years ago    Number of views: 5202    Number of likes: 1

How to design reliable message queue tasks

Laravel Message Queuing Practice Online operation and maintenance

In essence, a queue task is a PHP object that is serialized and persisted, then transmitted, deserialized, and finally executed by the processor process. They can run multiple times, or run on multiple machines

Published by Xueyuan Jun 3 years ago    Views: 5146    Number of likes: 0

Restart the queue task processing process during application deployment

Laravel Message Queuing Practice Online operation and maintenance

During application deployment, the queue processor process needs to be restarted to inform the code changes. Restart via CLI In the deployment script, run the restart command after the code pulls the update: This life

Published by Xueyuan Jun 3 years ago    Views: 5245    Number of likes: 1

Manage the retry of queue tasks in the production environment

Laravel Message Queuing Practice Online operation and maintenance

Avoid task marking failure by retrying Whenever the processor process acquires a task from the queue system, it is considered as an attempt, even if the task is not running at all. We can taste

Published by Xueyuan Jun 3 years ago    Number of views: 4534    Number of likes: 1

How to ensure high availability of Redis driven message queue

Laravel Message Queuing Practice Online operation and maintenance

Make memory use controllable Redis has good performance, but it needs a lot of memory space, which is more expensive than disk. In order to make a balance between performance and price, we need to control the use of memory:

Published by Xueyuan Jun 3 years ago    Number of views: 4199    Number of likes: 1

How to select the correct message queue driver

Laravel Message Queuing Practice Online operation and maintenance

Larave currently supports the following message queue storage drivers: Redis Database SQS Beanstalkd majority...

Published by Xueyuan Jun 3 years ago    Views: 2930    Number of likes: 0

Process all failures in the queue task lifecycle

Laravel Message Queuing Practice Online operation and maintenance

The queue system introduces three roles: Producer: push messages to the queue; Consumer: read messages from the queue and process them; Memory: Stores messages. Any Role

Published by Xueyuan Jun 3 years ago    Views: 2854    Number of likes: 0

Manage queue processor process and scaling strategy based on Laravel Horizon

Laravel Message Queuing Practice Online operation and maintenance

In the last tutorial, we introduced how to scale queue processors based on load monitoring. Scaling can be divided into horizontal scaling and vertical scaling. Horizontal scaling refers to adding/removing processor processes/

Published by Xueyuan Jun 3 years ago    Views: 3641    Number of likes: 0

Elastic scaling of queue processor processes

Laravel Message Queuing Practice Online operation and maintenance

In general, there are a fixed number of queue processors that consume queues, and keep emptying queues while making efficient use of server resources. However, in some cases, the following methods are needed

Published by Xueyuan Jun 3 years ago    Views: 2826    Number of likes: 0

Manage queue processor processes and memory leaks

Laravel Message Queuing Practice Online operation and maintenance

Introducing Supervisor A queue worker is a PHP process that is expected to run indefinitely. However, under the following circumstances, it will exit abnormally: ...

Published by Xueyuan Jun 3 years ago    Number of views: 3184    Number of likes: 1

Select the correct CPU and memory configuration

Laravel Message Queuing Practice Online operation and maintenance

Using computing resources in the most efficient way requires multiple iterations until the best configuration is found for each use case. The allocated resources are less than the requirements, and the CPU load is high, the queue is blocked, and any

Published by Xueyuan Jun 3 years ago    Number of views: 3538    Number of likes: 0

Send application deployment notification asynchronously

Laravel Message Queuing Practice Use Instance

Today's topic is to send notifications to associated users after successful application deployment. Send notification after application deployment Different users may use different notification receiving tools, some use email

Published by Xueyuan Jun 3 years ago    Views: 2545    Number of likes: 0

Issue coupons asynchronously through the event listener

Laravel Message Queuing Practice Use Instance

Events and event listeners In applications built based on event drivers, an event may have multiple event listeners. Take the NewOrderSubmitted event as an example

Published by Xueyuan Jun 3 years ago    Views: 2596    Number of likes: 4

Aggregating message flows from different social platforms for users

Laravel Message Queuing Practice Use Instance

The theme of this sample tutorial is to aggregate messages from different social media and import them into a single customer support platform. Each integrated message platform calls Webhook to give us

Published by Xueyuan Jun 3 years ago    Views: 2021    Number of likes: 0