Overview
Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Explore Server-Sent Events as a carefree alternative to WebSockets in this EuroPython 2019 conference talk. Discover the inner workings, key differences, and implementation techniques for Server-Sent Events in Python. Learn how to handle real-time communication challenges such as disconnections, reconnections, and scaling. Gain insights into use cases, including push notifications and games, and understand the advantages of Server-Sent Events over WebSockets and long polling. Dive into practical examples using frameworks like TurboGears and Flask, and explore browser support and available libraries for seamless integration.
Syllabus
Intro
About Andrei
Travel to Italy
Agenda
Have you used WebSockets
ServerSent Events
Polling
Long polling
WebSockets
ServerSentEvents
Event Source API
Event Handlers
TurboGears
Flask
Data package
Custom event listener
Redirect
Coverage
Browser support
Libraries
Differences
Unfortunate place
Comment
Use cases
Push notifications
Games
Links
ServerSent Events vs LongPolling
Taught by
EuroPython Conference