~/talk

Async PHP with Coroutines: Building Scalable Applications

Talkat phpday 2025 · 2025-05-15..05-16· [php, serverless]
slides:none on file

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

  1. 0:00Introduction
  2. 1:48PHP bottlenecks
  3. 5:21PHP concurrency evolution
  4. 6:50Event-driven PHP
  5. 9:37Early async drawbacks
  6. 10:17PHP 8.1 fibers
  7. 12:27Swoole coroutines
  8. 13:51How coroutines work
  9. 15:36Coroutine use cases
  10. 16:20Sync vs async demo
  11. 19:08Shared state in coroutines
  12. 21:21Inter-coroutine channels
  13. 23:26Coroutine performance
  14. 24:08Conclusion and key takeaways
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.