Async PHP with Coroutines: Building Scalable Applications
summary
Shows that PHP moves from blocking request–per–process to real async: demos use Swoole coroutines and native PHP fibers, convert three sequential API calls into parallel ones and report 4–8x faster in examples. Claims at modest hardware reach ~10,000 requests per second on one server and ~2 MB per 1,000 coroutines memory. Builds include HTTP/WebSocket servers, channels and shared globals and the demos claim they work and simplify IO‑bound scaling for Appwrite‑style services.
AI-written summary · about
chapters (14)
- 0:00Introduction
- 1:48PHP bottlenecks
- 5:21PHP concurrency evolution
- 6:50Event-driven PHP
- 9:37Early async drawbacks
- 10:17PHP 8.1 fibers
- 12:27Swoole coroutines
- 13:51How coroutines work
- 15:36Coroutine use cases
- 16:20Sync vs async demo
- 19:08Shared state in coroutines
- 21:21Inter-coroutine channels
- 23:26Coroutine performance
- 24:08Conclusion and key takeaways








