Reconfigurer Symfony en temps réel avec des sidekicks applicatifs
summary
FrankenPHP enables long‑running PHP threads inside a single process and exposes a pattern called applicative sidekicks: background Symfony commands that push state into an in‑memory whiteboard via atomic set/get vars. Examples include a Redis Sentinel listener (AMP async) that sets the current master on change, and an OpenFeature poller that pushes JSON config so HTTP workers do zero network roundtrips. The process manager handles crash recovery and graceful degradation to PHP‑FPM mode; configuration uses a Caddyfile background entry to start named workers.
AI-written summary · about
chapters (17)
- 0:00Introduction and background
- 1:47PHP limitations for real-time reconfiguration
- 5:01FrankenPHP and worker mode
- 7:52Introducing sidekicks concept
- 10:44Sidekicks configuration in Caddyfile
- 12:10Feature flag sidekick demo
- 13:35Redis Sentinel sidekick example
- 16:47Sidekicks design principles
- 17:31Additional use cases for sidekicks
- 18:34Symfony integration vision
- 20:23Auto-wiring environment closures
- 21:50Pseudo environment variables
- 22:11Graceful degradation concept
- 22:53Single-process deployment benefits
- 23:59Future features and roadmap
- 26:48FrankenPHP vs PHP-FPM comparison
- 27:29Conclusion and call to action
