Get the latest tech news

WebSockets cost us $1M on our AWS bill


IPC is something that is rarely top-of-mind when it comes to optimising cloud costs. But it turns out that if you IPC 1TB of video per second on AWS it can result in enormous bills when done inefficiently.

Join us in this deep dive where we unexpectedly discover how using WebSockets over loopback was ultimately costing us $1M/year in AWS spend and the quest for an efficient high-bandwidth, low-latency IPC. While this is great for security, the downside is masking the data means making an additional once-over pass over every byte sent over WebSocket -- insignificant for most web usages, but a meaningful amount of work when you're dealing with 100+ MB/s This exercise in optimizing IPC for CPU efficiency reduced our AWS bill by over a million dollars per year, a huge impact and a really great use of time!

Get the Android app

Or read this on Hacker News

Read more on:

Photo of AWS

AWS

Photo of websockets

websockets

Photo of AWS bill

AWS bill

Related news:

News photo

Amazon workers 'appalled' by AWS CEO's return to office remarks, urge reversal

News photo

500 Amazon employees reportedly ask AWS CEO to reverse return-to-office policy

News photo

AWS launches in-line Q Developer AI coding assistant to take on Microsoft’s Github Copilot