WebSockets
Persistent bidirectional connections for real-time features.
All topics · 2 lessons · 24 resources
Learn WebSockets on System Design Atlas
- 01Polling, long polling, SSE and WebSocketsFour ways to get live updates to a browser, and how to choose between them.Core Concepts: How Things Actually Work · 7 min read · start here
- 02Design a chat systemReal-time one-to-one and group messaging: persistent connections, message routing, ordering, storage and presence.Classic System Designs · 13 min read
Curated WebSockets resources
Case Studies
- Brooklin: Distributed Service for Near Real-Time Data Streaming at LinkedInBrooklin—a distributed service for streaming data in near real-time and at scale—has been running in production at LinkedIn since 2016, powering thousands of data streams and over 2 trillion messages per day. Today, we are pleased to announce the open-sourcing of Brooklin and that the source code is available in…LinkedIn
- Concourse: Generating Personalized Content Notifications in Near-Real-Time at LinkedInSocial media are computer-mediated platforms that facilitate creation and sharing of information, ideas, career interests, and other forms of expression via virtual communities and networks. In the last few years, notifications have been proven to be the mainstay for surfacing social media’s value to users and…LinkedIn
- Erlang at Facebook (slides)How Facebook's chat backend used Erlang processes to hold huge numbers of connections and route messages.Facebook
- How Discord Scaled Elixir to 5,000,000 Concurrent UsersHow a chat service handles millions of concurrent connections with Erlang/Elixir processes and consistent hashing.Discord
- How Uber Scales Their Real-time Market Platform - High Scalability -Reportedly Uber has grown an astonishing 38 times bigger in just four years . Now, for what I ...High Scalability
- MemSQL and Kinesis for Real-time Insights at DisneyWe’ve made the very difficult decision to cancel all future O’Reilly in-person conferences. Instead, we’ll continue to invest in and grow O’Reilly online learning, supporting the 5,000 companies and 2.5 million people who count on our experts to help them stay ahead in all facets of business and technology.Disney
- ML Data Pipelines for Real-Time Fraud Prevention at PayPalMikhail Kourjanski focuses on the architectural approach towards PayPal’s internally built real-time service platform that leverages Machine Learning models and delivers performance and quality of decisions. This platform has established a balance between Big Data and sustainable support for a high volume of…PayPal
- Real-Time Data Warehouse with MemSQL on Cisco UCSWe are at an inflection point where we are moving to a world where everything is connected to everything else. That’s what the Internet of Things (IoT)Cisco
- Real-time Distributed Tracing at LinkedInCo-authors: Chris Coleman , Toon Sripatanaskul With LinkedIn’s service-oriented architecture, a single page view request can fan out calls to downstream services spanning multiple backend tiers, many levels deep. Though applications depend on downstream services, developers have no insight on the reLinkedIn
- Real-time MessagingHow Slack delivers real-time messages to many clients through gateway servers and a messaging pipeline.Slack
- Real-Time Predictions at DoorDashRaghav Ramesh presents DoorDash’s thoughts on how to structure machine learning systems in production to enable robust and wide-scale deployment of machine learning, and shares best practices in designing engineering tooling around machine learning.DoorDash
- Real-time Presence Platform at LinkedInHave you ever wondered how those green online indicators (or “presence indicators”) that are so pervasive in every instant messaging application and social network actually work? How does one display them in real time for roughly 500 million members on a social network like LinkedIn?LinkedIn
- Scaling Real-time Infrastructure at Alibaba for Global Shopping Holiday - Xiaowei Jiang, Senior Director at AlibabaAlibaba’s 11.11 Global Shopping Festival, hosted annually on November 11, is the world’s largest 24-hour online shopping event. On this day, we process trillions of events in realtime to give the best experience to users of our e-commerce platform. In this talk, we will dive into the scale and performance…Alibaba
- Uber's Real-Time Push PlatformHow Uber pushes live updates to millions of phones instead of having apps poll.Uber
- The WhatsApp Architecture Facebook Bought for $19BHow a tiny team served hundreds of millions of users with Erlang and FreeBSD.High Scalability
Documentation
- Druid - Real-time Analytics DatabaseApache Druid, a real-time analytics database: the project site and its documentation.Apache
- MDN: WebRTC connectivityICE, STUN, TURN and how peers find a path through NATs.MDN Web Docs
- RFC 6455: The WebSocket ProtocolThe standard behind WebSocket, including the upgrade handshake and framing.IETF
- WebRTC: getting started overviewThe official overview of peer connections, signalling and media in WebRTC.webrtc.org
- MDN: WebSockets APIBrowser API reference and guides for opening persistent two-way connections.Mozilla