Laravel Queue and Cache
Looking to speed up your server's response time? This series will teach you everything about async programming and caching in Laravel.
Lifetime access for $59!
Course Content
FREE Ep1 - What is Cache and Why?
There are times where we needed to compute the same expensive operation for a several times in a short span of period. It is a waste of resources if we were to compute everything from scratch each time. Let's how we could use Cache to solve this.FREE Ep2 - Stack Vs Heap Vs Queue
Stack, Heap and Queue are powerful data structure that have a wide variety of use cases.FREE Ep3 - App Intro
We are going to build a geolocation distance calculator. In the first part (this series) we will build the Laravel backend where we utilise cache and queue to power the app.PREMIUM Ep4 - Configuring Redis for Caching and Queuing
Let's install and configure redis to enable caching!PREMIUM Ep5 - Caching Basics in Laravel
Laravel provided a simple yet elegant API for us to work with Cache. We will talk about CRUD in this episode.PREMIUM Ep6 - Locking and Race Condition
Locking or Race condition is the notion of multiple processes competing against the same resource. Let's talk about this in details.PREMIUM Ep6.1 - Laravel Sail: Setting up Nginx and PHP-FPM
The default Laravel Sail development container doesn't allow us to execute tasks in parallel. We will learn to setup our custom development web server instead!PREMIUM Ep7 - Lock and Lock
To avoid race condition, Laravel provided us a mechanism to ensure an operation is only executed once across multiple php workers, and it is called Atomic Locking.PREMIUM Ep8 - Caching API Response
Time to put our knowledge into use. Let's see how we could cache third party API response in our app.PREMIUM Ep9 - Cache Tagging and Grouping
It would be nice if we can group cache items together. Fret not, Laravel got us covered with the Tagging API.PREMIUM Ep10 - Laravel Horizon and Configuring Queue
Horizon is a first party package to help us manage and monitor queue. Let's build another docker container toPREMIUM Ep11 - Job Class and Dispatching Job
We will create an endpoint to process the location CSV file. Let's see how we can use queue and job to make this all better!PREMIUM Ep12 - Queue Configuration Overview
Exploring the meaning of the essential config keys in our queue.PREMIUM Ep13 - Job Middleware and Rate Limiting
Sometimes we need to run some checks before the job is executed. Let's dive deeper and see how we could achieve this via setting up a job middleware.PREMIUM Ep14 - Job Chaining and Batching
Laravel allows us to chain and batch jobs through the Bus Facade, so we can run jobs consecutively and/or in parallel.PREMIUM Ep15 - Job Management
We can define a few class properties in the job class to fine tune the execution behaviour of a job. These properties can help us to better manage our jobs.PREMIUM Ep16 - Job Lifecycle Hooks
It is a very common scenario that we needed to run some operations before or after the execution of a job. eg sending out emails or generating report. Let's see how we can do so using the Job lifecycle hooks.PREMIUM Ep17 - Queue Artisan Commands
If for any reason, that you are not using Laravel Horizon, Laravel provided us a series of artisan commands to manage our jobs.
Ep1 - What is Cache and Why?
There are times where we needed to compute the same expensive operation for a several times in a short span of period. It is a waste of resources if we were to compute everything from scratch each time. Let's how we could use Cache to solve this.