Laravel Queues in Action

Laravel Queues in Action

  • 1 book
  • Intermediate
  • $39.00

Overview

Over the years, I worked on projects that heavily relied on asynchronous task execution (Vapor, Forge & Envoyer). I also worked with hundreds of Laravel community members to solve problems involving the queue system. Along the way, I contributed to enhancing the system by adding new features, fixing bugs, and improving performance.

In August 2020, I released the first edition of this book. In which I shared everything I know about the queue system in Laravel. Fast forward to 2022, several Laravel releases came out, and more usage patterns were discovered.

This second edition was completely rewritten to be more insightful to first-time queue system explorers and long-time professionals. It includes extra challenges, in-depth guides, and diagrams that will give you the information you need to make educated decisions about how to best use the queue system in your projects.

Introduction to Queues
  • The Queue System
  • Queues in Laravel
  • The Advantages of Using Queues
Cookbook
  • Sending Email Verification Messages
  • High Priority Jobs
  • Retrying Failed Jobs
  • Configuring Automatic Retries
  • Canceling Abandoned Orders
  • Sending Webhooks
  • Provisioning a Forge Server
  • Canceling a Conference
  • Preventing a Double Refund
  • Preventing a Double Refund With Unique Jobs
  • Bulk Refunding Invoices
  • Selling Conference Tickets
  • Spike Detection
  • Processing Uploaded Videos
  • Sending Monthly Invoices
  • Controlling The Rate of Job Execution
  • Dealing With API Rate Limits
  • Dealing With an Unstable Service
  • Provisioning a Serverless Database
  • Generating Complex Reports
  • FIFO Queues
  • Dispatching Event Listeners to Queue
  • Sending Notifications in the Queue
  • Dynamic Queue Consumption
  • Customizing The Job Payload
A Guide to Running and Managing Queues
  • How Laravel Dispatches Jobs
  • Creation of The Job Payload
  • How Workers Work
  • Choosing the Right Machine Configuration
  • Keeping the Workers Running
  • Scalability of The Queue System
  • Scaling With Laravel Horizon
  • Choosing The Right Queue Driver
  • Handling Queues on Deployments
  • Designing Reliable Queued Jobs
  • Managing The State
  • Dealing With Failure
  • Dispatching Large Batches
Reference
  • Worker Configurations
  • Job Configurations
  • Connection Configurations
  • Horizon Configurations
  • Built-in Middleware
  • Job Interfaces

Chapters

    Introduction to Queues

  • The Queue System

  • Queues in Laravel

  • The Advantages of Using Queues

  • Cookbook

  • Sending Email Verification Messages

  • High Priority Jobs

  • Retrying Failed Jobs

  • Configuring Automatic Retries

  • Canceling Abandoned Orders

  • Sending Webhooks

  • Provisioning a Forge Server

  • Canceling a Conference

  • Preventing a Double Refund

  • Preventing a Double Refund With Unique Jobs

  • Bulk Refunding Invoices

  • Selling Conference Tickets

  • Spike Detection

  • Processing Uploaded Videos

  • Sending Monthly Invoices

  • Controlling The Rate of Job Execution

  • Dealing With API Rate Limits

  • Dealing With an Unstable Service

  • Provisioning a Serverless Database

  • Generating Complex Reports

  • FIFO Queues

  • Dispatching Event Listeners to Queue

  • Sending Notifications in the Queue

  • Dynamic Queue Consumption

  • Customizing The Job Payload

  • A Guide to Running and Managing Queues

  • How Laravel Dispatches Jobs

  • Creation of The Job Payload

  • How Workers Work

  • Choosing the Right Machine Configuration

  • Keeping the Workers Running

  • Scalability of The Queue System

  • Scaling With Laravel Horizon

  • Choosing The Right Queue Driver

  • Handling Queues on Deployments

  • Designing Reliable Queued Jobs

  • Managing The State

  • Dealing With Failure

  • Dispatching Large Batches

  • Reference

  • Worker Configurations

  • Job Configurations

  • Connection Configurations

  • Horizon Configurations

  • Built-in Middleware

  • Job Interfaces

Reviews

No review yet.

Author


Mohamed Said Profile Picture

Mohamed Said

Hey, I am VP of Engineering at Foodics and a former Laravel core team member. I enjoy writing tutorials and creating videos on web development. My main interest is helping developers learn beyond the basics. I also have a journal where I document random thoughts.

Topics