Laravel Queues in Action is now available!
I'm Mohamed Said, a full-stack web developer working at Laravel. In this publication, I share everything I know about Laravel's core, packages, and tools.
Browse the list of topics or check the latest posts from below.

Updated: Sep 21, 2020 — 1 min Read — #queues

Avoiding Memory Leaks When Running Laravel Queue Workers

Avoiding memory leaks can be a bit challenging. Over time, some references will pile up in the server memory that won't be detected by PHP. In this post, we'll look at our options in dealing with this.

Updated: Sep 16, 2020 — 1 min Read — #queues

Switching Between Queue Drivers in Laravel Without Stopping the World

Each of the queue drivers supported by Laravel has its pros and cons, and sometimes you may want to switch between drivers to accommodate business needs. In this post we're going to look into the possible ways to switch between drivers.

Updated: Sep 7, 2020 — 3 min Read — #queues

Job Batching in Laravel: How It Works

Laravel 8 ships with a neat feature that allows us to dispatch a group of jobs to the queue to be executed in parallel. In this post, we're going to look into how this works under the hood.

Updated: Sep 11, 2020 — 3 min Read — #queues

Features and Changes Coming to Laravel 8's Queue System

Laravel 8 ships with cool new features as well as some changes to the queue component. In this post we'll look into these features and changes.

Updated: Sep 8, 2020 — 3 min Read — #queues

Laravel Queues and Deployments

In this post, we're going to look into handling queued jobs while deploying your applications. We'll discuss restarting normal workers & Horizon workers as well as handling migrations.

Updated: Sep 8, 2020 — 2 min Read — #queues

Dealing With API Rate Limits in Queued Jobs

In this post, We'll see how we may deal with a queued job that sends an HTTP request to an API that only allows 30 requests per minute.

Updated: Sep 8, 2020 — 2 min Read — #queues

Running The Same Queued Job Multiple Times

Learn how you can use use Laravel Queues to re-use the same job instance multiple times to execute different logic.

Updated: May 25, 2020 — 1 min Read — #multi-tenancy #queues

Balancing job processing across different users/tenants

A look into preventing one tenant that's pushing too many jobs from delaying job processing of other tenants.

Hey! 👋 If you want to receive updates on what I'm up to, I host a newsletter on my website themsaid.com and would love to have you.

You can also follow me on Twitter, I regularly post about all things Laravel including my latest video tutorials and blog posts.

Updated: May 13, 2020 — 1 min Read

The Backend-for-frontend Pattern For Monoliths

In this post I discuss the backend-for-frontend pattern and how it can be used in a monolith application.

Updated: May 17, 2020 — 2 min Read — #multi-tenancy

Multi-tenancy in Laravel

I recently started a deep dive into multi-tenancy in Laravel, specifically the database-per-tenant approach, and created a video on how to achieve multi-tenancy without any packages...

Updated: Apr 20, 2020 — 1 min Read

Laravel session-based authentication, CSRF Protection, and CORS

Updated: Mar 9, 2020 — 1 min Read — #queues

Explaining Laravel Queue configuration keys

In this series of video tweets, I've explained some of the most confusing Queue configuration keys

🔥 Quick Dip — Updated: Feb 18, 2020

When does PHP call __destruct()?

Updated: Feb 12, 2020 — 1 min Read

Asynchronous PHP

PHP code is blocking, meaning that one block of code will not run until the block prior to it has finished. It wasn't built with asynchronous execution in mind. However, we can still run code in an asynchronous fashion while using PHP.

🔥 Quick Dip — Updated: Feb 5, 2020

Running a task after the response is sent

🔥 Quick Dip — Updated: May 10, 2020

Encryption and Hashing

🔥 Quick Dip — Updated: Jan 31, 2020

Where to look when you see "Job has been attempted too many times or run too long"

Updated: Jan 30, 2020 — 1 min Read — #queues

A production-ready database queue driver for Laravel

In this post we'll explore why the database queue driver wasn't recommended and how we fixed that in a recent change to Laravel.

🔥 Quick Dip — Updated: Jan 27, 2020

Prevent your queued jobs from duplicating

🔥 Quick Dip — Updated: Jan 26, 2020

APP_KEY is a secret. Here's what it's used for & how you can rotate it

This site was built using Wink. Follow the RSS Feed.