Almost done · coming soon

LARAVEL IN
PRODUCTION

Architecture, Performance, and Operations at Scale

For the mid-to-senior Laravel engineer who already knows how to build an application and is now the one handed the architecture decisions, the performance incident, and the migration that has to happen without a maintenance window.

PDF · light mode PDF · dark mode EPUB
Cover of Laravel in Production: Architecture, Performance, and Operations at Scale, by Nuruzzaman Milon

This isn’t a Laravel tutorial.

If you’re looking for how to define a route, write a migration, or use Eloquent relationships, there are excellent books for that already - this isn’t one of them. This book starts where those end.

NOT IN HERE

  • · How routing, Eloquent, or queues work
  • · Basic CRUD and Blade templating
  • · A framework feature tour

WHAT’S ACTUALLY IN HERE

  • · Structuring a codebase as more than one team touches it
  • · Keeping it fast once traffic outgrows one database
  • · Keeping it correct when a request can arrive twice
  • · Keeping it available when a dependency you don’t control fails
  • · Running all of it at 3 a.m. without it becoming a year-long story
WHAT’S INSIDE

Eight parts, ordered by dependency, not importance.

Part 1 and Part 2 build vocabulary the rest of the book assumes. Beyond that, most parts stand on their own - if you picked this up because of a live incident with your queues, your database failover, or your CI pipeline, it’s reasonable to skip straight to the relevant chapter.

PART 1 6 chapters

Foundations

Structuring Laravel Systems

Sets the vocabulary and decision frameworks the rest of the book relies on - establishing that “monolith vs. microservices” is really several independent decisions that get conflated into one.

PART 2 7 chapters

Performance Engineering

The mechanics of making a Laravel application fast under real load, from the database up through the caching and queue layers.

PART 3 3 chapters

Correctness Under Load

Performance and availability don’t matter if the system produces wrong answers under concurrency - idempotency, state machines, and ledger patterns for systems where the mistake is money.

PART 4 4 chapters

High Availability & Resilience

Keeping the system up, or gracefully degraded, when a dependency fails, a data center goes dark, or a risky release needs to be undone in seconds instead of minutes.

PART 5 2 chapters

Observability & Monitoring

Seeing what a production system is actually doing - logs, metrics, and traces that answer “what happened,” and alerts that page on what users feel.

PART 6 3 chapters

Deployment & CI/CD

Getting code from a merged pull request into production safely and repeatably - build pipelines, container-based releases, and the infrastructure underneath them.

PART 7 3 chapters

Operations

The day-to-day discipline of running a live system: closing the security gaps behind most real incidents, responding well when something breaks anyway, and managing cost sustainably.

PART 8 1 chapter

Capstone

One fictional system, HaatBazaar, followed through every layer this book has covered, as the decisions from Parts 1 through 7 collide during a genuinely bad night.

TABLE OF CONTENTS

All 29 chapters, part by part.

The full chapter list, if you’d rather scan titles than descriptions. Plus a preface up front and, at the back, an appendix with a glossary and an about-the-author page.

Part 1 · Foundations 6 chapters
  1. 1 Monolith vs. Modular Monolith vs. Microservices vs. Monorepo
  2. 2 The Shared Kernel Problem
  3. 3 Multi-App Monorepos in Practice
  4. 4 Carving Out a Service
  5. 5 Designing for Vendor Replaceability
  6. 6 Upgrading & Refactoring Laravel at Scale
Part 2 · Performance Engineering 7 chapters
  1. 7 Database Performance Fundamentals
  2. 8 Safe Schema Evolution at Scale
  3. 9 Caching Strategies
  4. 10 Queues & Background Processing at Scale
  5. 11 Real-Time Systems & WebSockets at Scale
  6. 12 Rate Limiting & Abuse Protection
  7. 13 Load Testing & Capacity Planning
Part 3 · Correctness Under Load 3 chapters
  1. 14 Money, State Machines, and Idempotency
  2. 15 Case Study: From Mutable Balance to Append-Only Ledger
  3. 16 Distributed Transactions Without Two-Phase Commit
Part 4 · High Availability & Resilience 4 chapters
  1. 17 Designing for Failure
  2. 18 Data-Layer High Availability
  3. 19 Disaster Recovery & Backups
  4. 20 Feature Flags & Progressive Delivery
Part 5 · Observability & Monitoring 2 chapters
  1. 21 The Three Pillars in a Laravel Application
  2. 22 Alerting & SLOs
Part 6 · Deployment & CI/CD 3 chapters
  1. 23 CI Pipelines for Monorepos
  2. 24 Container Deployments
  3. 25 Infrastructure as Code for Laravel
Part 7 · Operations 3 chapters
  1. 26 Security in Production
  2. 27 Runbooks & On-Call
  3. 28 Cost & Capacity Management
Part 8 · Capstone 1 chapter
  1. 29 Putting It Together
FREE SAMPLE

Read before you commit to anything.

The sample includes the front matter, the complete table of contents, and Chapter 8 in full - enough to see both how the book opens and how a full chapter reads. No email required.

IN THE SAMPLE

  • · Title, copyright, dedication & a note on how this book was written
  • · Chapter 8 in full: Safe Schema Evolution at Scale
GET NOTIFIED

Be the first to know when it’s ready.

The book is almost done and coming soon. Leave your email and I’ll send one note, the day it’s ready. No spam, no drip campaign.

ABOUT THE AUTHOR
Nuruzzaman Milon

Nuruzzaman Milon

Nuruzzaman Milon is a software engineering leader, open-source creator, and tech community organizer living in the Pacific Northwest. With a professional background spanning international tech hubs across Europe and North America, he balances his technical work with a love for traditional cooking, residential gardening, and personal digital archiving. He lives near Vancouver with his wife and three children.

More at milon.im →