Laravel Octane Keeps Workers Hot
Octane runs a Laravel application inside a persistent worker — FrankenPHP, RoadRunner, or Swoole — so the framework boots once instead of every request.Typical request latency drop…
Read article →Notes on JavaScript, PHP, WordPress, design, performance, and the practical side of shipping better digital products.
Topics covered
The blog is designed to support both technical readers and clients who want clearer language around scope, quality, and implementation decisions.
Octane runs a Laravel application inside a persistent worker — FrankenPHP, RoadRunner, or Swoole — so the framework boots once instead of every request.Typical request latency drop…
Read article →OPcache stores compiled bytecode in shared memory. opcache.memory_consumption (256MB on busy sites) and opcache.max_accelerated_files (20,000 for big apps) are the first knobs to t…
Read article →PHP's JIT (added in 8.0) compiles hot code paths to native machine code. For typical web requests the win is small — the request cycle…
Read article →Set PDO::ATTR_ERRMODE to PDO::ERRMODE_EXCEPTION. Set PDO::ATTR_EMULATE_PREPARES to false so the database (not PHP) does the prepare. Set PDO::ATTR_DEFAULT_FETCH_MODE to PDO::FETCH_…
Read article →Choose pm.dynamic for moderate sites and pm.static for high-traffic sites where you have measured the memory cost per worker.Calculate pm.max_children as (available RAM × 0.7)…
Read article →