🎁 New User? Get 20% off your first purchase with code NEWUSER20 Register Now →
Menu

Categories

Web Development Intermediate

What is Server-Sent Events (SSE)?

A web technology enabling servers to push real-time updates to browsers over a single HTTP connection, simpler than WebSockets.

Server-Sent Events provide a standard way for servers to push data to clients over HTTP. Unlike WebSockets (bidirectional), SSE is unidirectional (server to client) but simpler to implement, works over standard HTTP, and automatically reconnects on disconnection. The server sends text/event-stream responses with data, event type, retry interval, and optional IDs for resumption. Use cases include live notifications, stock tickers, social media feeds, and progress updates. SSE works through proxies and load balancers without special configuration. The EventSource JavaScript API provides a clean interface. For bidirectional communication, WebSockets remain the better choice.

Related Terms

Web Vitals
Google's metrics for measuring user experience quality, including loading speed, interactivity, and visual stability of web pages.
GraphQL
A query language for APIs that lets clients request exactly the data they need, reducing over-fetching and under-fetching.
Meta Tags
HTML elements in the page head that provide metadata about the document for browsers, search engines, and social media platforms.
HTTP/2
The second major version of HTTP that improves performance through multiplexing, header compression, and server push.
Static Site Generator (SSG)
A tool that generates a complete static HTML website from templates and content at build time, requiring no server-side processing.
OAuth Scope
A mechanism in OAuth that limits an application's access to a user's account to specific resources or actions.
View All Web Development Terms →