Websockets as the glue to interactivity
summary
Websockets power more than chat: the talk shows a working locker system for Belgian Railways where hardware processes (payment terminal, coin hopper, QR reader) connect via a device status aggregator and RPC to open doors and dispense coins; about 30 device types and clustered terminals share a single websocket backend. Tools demonstrated include Ratchet for PHP servers and crossbar (WAMP) for scalable pub/sub and RPC. Claims: PHP handles 10,000 pub/sub connections; for scale use dedicated websocket servers, increase Nginx timeouts, and prefer libraries over raw WebSocket APIs.
AI-written summary · about
chapters (15)
- 0:00Introduction and speaker background
- 2:07Old vs new web interaction models
- 3:54How WebSockets enable real-time communication
- 8:26WebSocket events and PHP async support
- 10:35Common WebSocket use cases
- 13:42Building a simple WebSocket server in PHP
- 17:59Publish-subscribe with WAMP
- 20:11Remote procedure calls with WAMP
- 23:25Scaling WebSocket servers
- 25:14Advanced WebSocket patterns
- 31:39Hardware integration with WebSockets
- 34:28WebSockets for infrastructure monitoring
- 35:53WebSockets behind Nginx and HAProxy
- 37:39WebSocket libraries and tools
- 40:58Q&A on WebSocket limitations








