Almost done · coming soon

LARAVEL AFTER DEPLOY

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.

By Nuruzzaman Milon · 46 chapters · PDF & EPUB

Cover of Laravel After Deploy: Architecture, Performance, and Operations at Scale, by Nuruzzaman Milon

Preface

Shipping a Laravel application is the easy part. The hard part starts after deploy: when a flash sale or a viral post turns usual traffic into a spike, when bots hammer your login endpoint, when a dependency you don’t control has a bad afternoon, when the same webhook arrives twice, when the on-call phone rings at 3 a.m. and the answer isn’t in the framework docs. This book is about that layer - the decisions that keep a real system fast, correct, and operable once it’s already in production.

Contents

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.

Part 1 · Foundations

  1. 1 Monolith vs. Modular Monolith vs. Microservices
  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 Structuring Third-Party HTTP Integrations
  7. 7 Upgrading & Refactoring Laravel at Scale

Part 2 · Performance Engineering

  1. 8 Database Performance Fundamentals
  2. 9 Safe Schema Evolution at Scale
  3. 10 Multi-Tenancy at Scale
  4. 11 Caching Strategies
  5. 12 Images on S3, CDNs, and Cache Invalidation
  6. 13 Queues & Background Processing at Scale
  7. 14 Long-Running PHP with FrankenPHP Worker Mode
  8. 15 Real-Time Systems & WebSockets at Scale
  9. 16 Rate Limiting & Abuse Protection
  10. 17 Load Testing & Capacity Planning
  11. 18 Search at Scale with a Third-Party Search Engine

Part 3 · Correctness Under Load

  1. 19 Money, State Machines, and Idempotency
  2. 20 Webhook Authenticity & Replay Protection
  3. 21 Inventory & Reservations Under Concurrency
  4. 22 Case Study: From Mutable Balance to Append-Only Ledger
  5. 23 Event Sourcing in Laravel
  6. 24 Distributed Transactions Without Two-Phase Commit
  7. 25 Working with Datetime and Timezones

Part 4 · High Availability & Resilience

  1. 26 Designing for Failure
  2. 27 Data-Layer High Availability
  3. 28 Disaster Recovery & Backups
  4. 29 Feature Flags & Progressive Delivery
  5. 30 Chaos Engineering & Game Days

Part 5 · Observability & Monitoring

  1. 31 The Three Pillars in a Laravel Application
  2. 32 The Production Dashboard for a Laravel App
  3. 33 Alerting & SLOs

Part 6 · Deployment & CI/CD

  1. 34 CI Pipelines for Monorepos
  2. 35 Container Deployments
  3. 36 The Laravel Release Checklist
  4. 37 Infrastructure as Code for Laravel
  5. 38 Coordinated Frontend & Backend Releases
  6. 39 API Versioning & Backward Compatibility

Part 7 · Operations

  1. 40 Security in Production
  2. 41 Sanctum, JWT, and Auth Across Services
  3. 42 The Admin Panel at Scale
  4. 43 Runbooks & On-Call
  5. 44 Cost & Capacity Management
  6. 45 AI-Assisted Development on a Laravel Team

Part 8 · Capstone

  1. 46 Putting It Together

Free sample

The sample includes the front matter and three full chapters - Chapter 9 on schema evolution, Chapter 16 on rate limiting and abuse protection, and Chapter 25 on datetime and timezones. No email required.

Get notified

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.

Nuruzzaman Milon

Nuruzzaman Milon

Nuruzzaman Milon is a software engineering leader, open-source creator, and tech community organizer, with a professional background spanning tech hubs across Asia, Europe and North America.

His first book, Laravel PHP Web Framework (Dimik Publication, 2015), ran to two editions, both best-sellers in Bangladesh and West Bengal.

He lives near Vancouver with his wife and three children.

More at milon.im →