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: Apr 7, 2021 — 6 min Read

Laravel Octane — Bootstrapping the Application and Handling Requests

A look into how Laravel Octane bootstraps the application and serves HTTP requests.

Updated: Apr 2, 2021 — 6 min Read

Laravel and Swoole

Swoole brings a great value to the PHP world; faster request handling and higher requests concurrency. It does that by allowing you to use your machine resources in the most efficient ways; no idle CPU cores, and no wasted memory space.

Updated: Mar 26, 2021 — 5 min Read

Asynchronous PHP — Multiprocessing, Multithreading & Coroutines

PHP code is blocking, meaning that one block of code will not run until the block prior to it has finished. In this post, we will look at our options for running PHP code asynchronously.

Updated: Mar 10, 2021 — 2 min Read — #queues

Rationing Your Laravel Queue Workers Memory And CPU Consumption

If you're running your queue workers on a server with limited resources, or a server that's also used to serve HTTP requests and do other tasks, it's important to ration the resource used by the workers. Let's see how we can do that.

Updated: Feb 19, 2021 — 2 min Read — #queues

Common Issues That Cause Laravel's Queue Workers Not to Restart

If the worker doesn't exit after a restart signal and you checked its status, you'll find the uptime much longer. If that's the case, here are a couple of things to check.

Updated: Feb 19, 2021 — 1 min Read — #queues

Job Encryption in Laravel

Job Encryption was introduced in Laravel v8.19.0. Let's see why you might need it and how you can use it.

Updated: Feb 19, 2021 — 3 min Read — #databases #queues #notifications

Better Management of Database Transactions in Laravel 8

Using database transactions is a powerful way to ensure data integrity. However, it's a bit tricky to control how non-sql code that runs around database transactions behaves when transactions are committed or rolled back. In this post, we'll look into the new transactions management capabilities in Laravel 8.

🔥 Quick Dip — Updated: Nov 13, 2020

The problem behind Undefined constant 'STDIN' when running Laravel artisan command programmatically

Laravel Queues Are Powerful!

"Laravel Queues in Action" is a premium eBook that helps you utilize the power of queues to make your applications faster and more reliable while reducing running costs.

Check it out

🔥 Quick Dip — Updated: Nov 9, 2020

The problem behind "Integrity constraint violation: 1062 Duplicate entry for key 'failed_jobs_uuid_unique'"

Updated: Feb 19, 2021 — 1 min Read — #queues

Dispatching Unique Jobs to Laravel Queues

With a few simple changes, we are going to ensure only a single instance of a given job exists in the queue at any given time.

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

Designing reliable queued jobs: Making Jobs Self-contained

To design reliable queued jobs, we must consider each stage the jobs go through. In this post, we're going to look at one of the most important things to consider when designing a queued job.

Updated: Feb 19, 2021 — 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: Feb 19, 2021 — 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.

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.

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