~/talk

Improving Application Performance with ReactPHP

Talkat Dutch PHP Conference 2020 · on Friday, 2020-06-26· [php, react]
links:none on file
slides:none on file

Explains how ReactPHP turns PHP into an event loop system using promises and streams, showing a concrete rewrite of three sequential HTTP requests into concurrent Browser client calls that wait only for the slowest response. Demonstrates timers, stream chunk processing, and async DB/file adapters (avoid PDO and file_get_contents). Notes pitfalls: any blocking call freezes the loop, long-running handlers and memory cleanup matter. Cites DriftPHP built on ReactPHP and a production crypto-exchange migration that measurably improves throughput.

AI-written summary · about

  1. 0:00Start
  2. 1:33Asynchronous PHP
  3. 5:41Parallel flow
  4. 5:56Asynchronous flow
  5. 6:41Performance
  6. 7:14Asynchronous approach
  7. 9:57Non-blocking I/O
  8. 11:18Event-driven architecture
  9. 20:24Promises: managing concurrency
  10. 22:58Streams API
  11. 24:32Ecosystem
  12. 26:04Asynchronous code
  13. 31:18Blocking calls
~/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.