~/talk

Getting started with ReactPHP Pushing real-time data to the browser

Talkat phpday 2020 · on Tuesday, 2020-09-08· [php, web-performance]
slides:none on file

Claims that PHP runs non‑blocking I/O with an event loop, uses promises and streams, and pushes live data to browsers via Server‑Sent Events. Implements TCP socket chat + Redis pub/sub + an HTTP server (PSR‑7) and an EventSource client; three concurrent HTTP requests finish in ~140 ms—about the same as one. Builds a single‑file distributed HTTP streaming server and a working chat demo (live restart hiccup but functions in browser). Notes ecosystem size: 300+ ReactPHP repos.

AI-written summary · about

  1. 0:00Start
  2. 1:52Introduction
  3. 2:36Pushing Real-Time Data to the Browser
  4. 2:55Agenda
  5. 5:21How Do People See Php Being Used
  6. 5:58To Improve Php's Performance
  7. 7:19Live Data with Php
  8. 10:21What React Is
  9. 10:42The Idea behind React Php
  10. 14:09Event Loop
  11. 16:16Periodic Timer
  12. 16:54Streaming Data
  13. 19:24Sockets
  14. 20:10Start a Socket Server in React Php
  15. 24:14Socket Client
  16. 24:51What Do Sockets Look like in Practice
  17. 25:45Promises
  18. 29:39What Is Http Streaming
  19. 30:20Http Server
  20. 33:22Event Source
  21. 33:34What's Event Source
  22. 39:09Conclusions
  23. 44:58React php Stickers
~/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.