Server-Sent Events
summary
A proof-of-concept implements Server-Sent Events using a PHP 8 backend (Symfony 5.4) and a React frontend with Symfony Mercure as the hub. It publishes Update objects through HubInterface, supports public and per-user topics, integrates with the command/listener action engine, includes tests that mock the hub for ~80% backend coverage, and demonstrated handling of about 50–100 concurrent clients in load checks while noting limits on binary data and per-tab connections.
AI-written summary · about
chapters (13)
- 0:00Start
- 3:50Constraints
- 7:26Cognitive Bias
- 10:57Server-Sent Events
- 11:23Websocket Advantages
- 12:50SSE Advantages
- 14:44Browser Support
- 17:46Installation via composer
- 18:43Configuration
- 24:53Observing the network
- 28:04Async dispatching
- 30:09How to catch mercure connection problems?
- 35:55Summary
related talks
46mGetting started with ReactPHP Pushing real-time data to the browser
43mGetting started with ReactPHP – Pushing Real-Time Data to the Browser
43mAdding Event Sourcing to an existing PHP project (for the right reasons)
01h 19mServer side rendering of React with Symfony
46mPushing the limits of PHP with React PHP
57mSymfony is RAD
33mAn Introduction to Asynchronous PHP using ReactPHP
01h 04mI saw the future, and its web servers were written in PHP
