Laravel After Deploy

Architecture, Performance, and Operations at Scale

Shipping is easy. Keeping a Laravel system fast, correct, and operable in production is the hard part.

46 chapters · 740 pages · Paperback · Kindle · PDF · EPUB

Preface

A flash sale or a viral post turns usual traffic into a spike. Bots hammer your login endpoint. A dependency you don’t control has a bad afternoon. The same webhook arrives twice. 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.

Every code example is Laravel and PHP. That is a practical choice. One stack, end to end, so each failure can be shown against real framework seams: Eloquent, queues, Horizon, Sanctum, the container, the scheduler. The problems themselves are not Laravel-only. Idempotency, backpressure, observability, failure isolation, and schema changes under load show up in any language. If you can read PHP, you can carry the patterns home even when your implementation looks different.

Free sample

The sample includes the front matter, the preface, 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.

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

Get the book

Start with the ebook from my store. Print and Kindle are on Amazon.

PDF & EPUB

Both files in one purchase, with no DRM and no account to create. Download starts as soon as you check out.

Buy from the store

Paperback & Kindle

740 pages in print, or the Kindle edition for your library. The link opens your local Amazon storefront.

Buy on Amazon

Contents

Eight parts, ordered by dependency rather than importance. Part 1 and Part 2 build vocabulary later parts assume. Beyond that, most parts stand on their own.

Part One

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 Two

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 Three

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 Four

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 Five

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 Six

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 Seven

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 Eight

Capstone

  1. 46 Putting It Together

Nuruzzaman Milon

Nuruzzaman Milon

Nuruzzaman Milon is a software engineering leader and open-source creator who also organizes tech community events. He has worked in tech hubs in Asia, Europe, and North America.

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

He lives near Vancouver with his wife and three children.

More at milon.im →