~/talk

Websockets and Torrents: A match made in PHP

Talkat PHP UK Conference 2017 · 2017-02-16..02-17· [php, web-platform]
slides:none on file

Built a Torrent Web GUI that pushes torrent JSON from server to browser using PHP event loops (React) and a WebSocket layer (Ratchet) with a client using AutobahnJS. Initial implementation polls a slow command-line dump (5–10s) every 2s via a periodic timer and blocks the loop, so work gets offloaded to workers and a job queue and injected back over zmq port 5555. Uses per-user topic tokens and Tor/SSH for VPS anonymity; demo initially fails on 3G then later runs.

AI-written summary · about

  1. 0:00Introduction to project
  2. 1:36Developing the prototype
  3. 4:21Refining the architecture
  4. 9:21Understanding WebSockets
  5. 13:21Interrupt-driven programming
  6. 17:49Implementing the stack
  7. 20:40Code and data flow
  8. 27:57Solving technical challenges
  9. 35:15Job queues and workers
  10. 38:31Live system demonstration
  11. 42:31Scaling and final lessons
  12. 47:49Q&A session
~/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.