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.
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 Monolith vs. Modular Monolith vs. Microservices
- 2 The Shared Kernel Problem
- 3 Multi-App Monorepos in Practice
- 4 Carving Out a Service
- 5 Designing for Vendor Replaceability
- 6 Structuring Third-Party HTTP Integrations
- 7 Upgrading & Refactoring Laravel at Scale
Part 2 · Performance Engineering
- 8 Database Performance Fundamentals
- 9 Safe Schema Evolution at Scale
- 10 Multi-Tenancy at Scale
- 11 Caching Strategies
- 12 Images on S3, CDNs, and Cache Invalidation
- 13 Queues & Background Processing at Scale
- 14 Long-Running PHP with FrankenPHP Worker Mode
- 15 Real-Time Systems & WebSockets at Scale
- 16 Rate Limiting & Abuse Protection
- 17 Load Testing & Capacity Planning
- 18 Search at Scale with a Third-Party Search Engine
Part 3 · Correctness Under Load
- 19 Money, State Machines, and Idempotency
- 20 Webhook Authenticity & Replay Protection
- 21 Inventory & Reservations Under Concurrency
- 22 Case Study: From Mutable Balance to Append-Only Ledger
- 23 Event Sourcing in Laravel
- 24 Distributed Transactions Without Two-Phase Commit
- 25 Working with Datetime and Timezones
Part 4 · High Availability & Resilience
- 26 Designing for Failure
- 27 Data-Layer High Availability
- 28 Disaster Recovery & Backups
- 29 Feature Flags & Progressive Delivery
- 30 Chaos Engineering & Game Days
Part 5 · Observability & Monitoring
- 31 The Three Pillars in a Laravel Application
- 32 The Production Dashboard for a Laravel App
- 33 Alerting & SLOs
Part 6 · Deployment & CI/CD
- 34 CI Pipelines for Monorepos
- 35 Container Deployments
- 36 The Laravel Release Checklist
- 37 Infrastructure as Code for Laravel
- 38 Coordinated Frontend & Backend Releases
- 39 API Versioning & Backward Compatibility
Part 7 · Operations
- 40 Security in Production
- 41 Sanctum, JWT, and Auth Across Services
- 42 The Admin Panel at Scale
- 43 Runbooks & On-Call
- 44 Cost & Capacity Management
- 45 AI-Assisted Development on a Laravel Team
Part 8 · Capstone
- 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.