Mohamed Said's Journal

Web Developer, cyclist, and freediver.
Posted on August, 22 2019 - 1 min Read

Laravel Vapor: When to use a Load Balancer

Laravel Vapor configures your lambda function to use AWS's API Gateway which follows the pay-as-you-go model. However, there's an option to provision a load balancer and pay a flat rate. Let's take a look.

To use Vapor or not to use it?

Answering some of the common questions I receive regarding Laravel Vapor.

Posted on Aug 15, 2019 - 1 min Read

Cost & Performance optimization in Laravel Vapor

Let's discover how the cost of lambda executions in Laravel Vapor is calculated, and how we can keep it under control. Vapor takes care of a lot of things for you already, but there are things that you need to handle yourself.

Posted on Jul 31, 2019 - 4 mins Read

What is AWS Lambda, and how Laravel Vapor uses it

Vapor is a serverless deployment platform for Laravel powered by AWS Lambda. A lot is happening under the hood, in this post we're going to discuss the most interesting part about Vapor, the "serverless" part.

Posted on Jul 25, 2019 - 3 mins Read

Multi-tenancy in Laravel: working with a database-per-tenant model.

In this article, we're going to explore one of the most confusing aspects of multi-tenancy in laravel applications; communicating with multiple databases.

Posted on Jan 28, 2019 - 3 mins Read

Handling HTTP Requests in Laravel

A shallow dive into how Laravel handles an incoming request and sends a response.

Posted on Jan 11, 2019 - 2 mins Read

Conditionally pushing event listeners to queue

Did you know you can decide whether or not a job should be dispatched before it even runs? Let me show you.

Posted on Jan 6, 2019 - 1 min Read

Persisting Redis Data on Disk

Redis data lives in memory, but you can configure Redis to store to the disk if you want. Learn about the different persistence strategies.

Posted on Jan 6, 2019 - 2 mins Read

Package Auto-discovery in Laravel

A look into how Laravel's package auto-discovery works under the hood.

Posted on Jan 30, 2018 - 4 mins Read

Understanding how notification channels work

Let's discover how each of the built-in notification channels work.

Posted on Jan 25, 2018 - 4 mins Read

How Laravel's Notification System Works

Laravel is shipped with a Notifications system that makes it super easy to send notifications. Let's see how it works.

Posted on Jan 24, 2018 - 3 mins Read

Rendering Exceptions

Let's see how Laravel converts exceptions to a decent response that you can show to your users.

Posted on Jan 22, 2018 - 3 mins Read

Reporting Exceptions

Being able to track exceptions encountered inside your application is useful to understand what went wrong. Let's see how Laravel handles reporting exceptions.

Posted on Jan 21, 2018 - 2 mins Read

Introduction To Exception Handling in Laravel

Let's take a look at how Laravel handles exceptions thrown from your code.

Posted on Jan 20, 2018 - 2 mins Read

Preparing Jobs For Queue

A look into how laravel prepares a job for queueing; once you push a job to the queue system, a number of actions is taken to serialize and store the job for later processing.

Posted on Jan 18, 2018 - 5 mins Read

Queue Workers: How they work

Understanding what happens under the hood when you run a queue worker.

Posted on Jan 17, 2018 - 9 mins Read

Pushing Jobs To Queue

A look into the different ways of configuring and pushing a job into queue.

Posted on Jan 16, 2018 - 5 mins Read

Introduction To The Queue System

Let's take a look on how the Queue System works in Laravel. This post is a general introduction on the queue setup shipped with Laravel.

Posted on Jan 15, 2018 - 3 mins Read

Introduction to Redis Hashes

While recording the product sales of a multi-tenant application, we need a way to store the metrics in a way that guarantees a solid separation...

Posted on Jan 7, 2018 - 3 mins Read

String Manipulation Redis Commands

A look into the string manipulation commands in Redis and how the can become handy.

Posted on Jan 6, 2018 - 1 min Read

Built Using Wink