Content Deep Dive
Scaling live experiences: Horizontal vs vertical scaling for WebSockets
Blog post from Ably
Post Details
Company
Date Published
Author
Ably
Word Count
2,751
Language
English
Hacker News Points
-
Summary
The article discusses the challenges of scaling WebSocket infrastructure and the key decisions involved in planning for it. It explains that while delivering live experiences through WebSockets is relatively easy, scaling them can be complex due to their stateful nature. Vertical scaling focuses on increasing the capacity of individual machines, whereas horizontal scaling introduces more machines to handle changes in demand. The article also covers some technical challenges and solutions related to load balancing and data synchronization. It emphasizes that while horizontal scaling is the only sustainable way to expand WebSocket capacity, it requires extra work in maintaining infrastructure.