Laravel in Production: Octane, FrankenPHP, and the Long-Running Lifecycle
Back
Advanced Plus

Laravel in Production: Octane, FrankenPHP, and the Long-Running Lifecycle

This course explains what changes when a Laravel project moves from the familiar nginx + PHP-FPM model to a long-running runtime with Laravel Octane and FrankenPHP. You will examine repeated bootstrap, warm workers, retained state, persistent connections, race conditions, memory leaks, watch/reload workflow, honest benchmarks, and production restart strategy.

Docker Laravel Laravel Octane FrankenPHP PHP-FPM Long-Running Workers Performance Benchmarking Memory Diagnostics Production Runtime

Course outline

Published version: modules, lessons, and duration.

01

A Solid Starting Point

  1. 1 Checking the Project Before Changing the Runtime
    70 min
  2. 2 Baseline Latency and Throughput Before Octane
    80 min
02

Why FPM Was Convenient and Where It Starts Getting in the Way

  1. 1 How a Classic PHP Request Lives
    65 min
  2. 2 Constant Bootstrap as the Price of Simplicity
    75 min
03

Long-Running Worker as a New Mental Model

  1. 1 A Worker That Survives a Request
    75 min
  2. 2 Octane as a Laravel Layer Over a Long-Running Runtime
    90 min
  3. 3 FrankenPHP as the Chosen Implementation, Not Magic
    90 min
04

Development Workflow: Watch, Reload, and Assets

  1. 1 Watch Mode and Code Synchronization in the Container
    60 min
  2. 2 Frontend Assets, Vite Manifest, and Octane Restart
    65 min
05

Stateful Environment and Preserved State

  1. 1 Static Fields as Hidden Process Memory
    70 min
  2. 2 Singleton and Request Data
    75 min
06

Connections, pool, and external resources

  1. 1 Persistent connections and connection pool without false promises
    70 min
  2. 2 Cleaning up resources after a request
    70 min
07

Race conditions and parallelism

  1. 1 Why a PHP developer from the FPM world often does not see race condition
    85 min
  2. 2 Protecting critical operations
    95 min
08

Memory leaks and worker diagnostics

  1. 1 What a memory leak is in a PHP long-running process
    85 min
  2. 2 Diagnostic tools
    95 min
09

Performance and real limits

  1. 1 Benchmark before and after Octane
    90 min
  2. 2 When Octane does not help
    85 min
10

Production practices

  1. 1 Graceful restart, reload, and deploy without surprises
    90 min
  2. 2 Healthchecks, logs, and Octane worker metrics
    95 min