Speed up web APIs with Expressive and Swoole
summary
Shows how a middleware async architecture combining Expressive and Swoole runs PSR-7/PSR-15 middleware in a long‑running PHP process, with conversion helpers from Swoole requests to PSR-7. Claims benchmarked up to 4x faster than nginx or Apache (benchmark) for a simple API, reuses a shared service container in memory, and warns that shared memory breaks typical PHP assumptions — avoid globals, session and raw DB connections so not suitable for WordPress/Drupal without reworking persistence.
AI-written summary · about
chapters (10)
- 0:00Introduction
- 1:06Overview
- 1:54Expressive
- 5:47Demo
- 9:36Middleware
- 11:15Authentication
- 14:52Routing
- 17:55Expressive Skeleton
- 28:40Expressive example
- 32:00Conclusion
related talks
54mSwoole: Issues and Production Use
25mAsync PHP with Coroutines: Building Scalable Applications
38mBuilding Server Applications with Swoole
40mMezzio + Swoole
48mBuilding Really Fast Applications
46mPushing the limits of PHP with React PHP
43mSpeeding up the Web with PHP 7
01h 02mSpeeding up the Web with PHP 7
