Notes on Lossy Systems

Toggle original/dithered image

Quick recap: In software engineering, a lossy system is what I call any system designed to return only incomplete answers.

All sufficiently important systems are lossy.

Any social media with an algorithmic feed (YouTube, Twitter, …), any search engine that touches a sufficiently large corpus (Google, Wikipedia, GitHub), …

I already wrote an article outlining examples of lossy systems, which you can find here.

Lossy systems are the tool of necessity you1 reach for once other scaling options get too expensive.

Vertical scaling (i.e. upgrading your existing server, faster car) runs into limits (sooner or later you have the best available hardware). Horizontal scaling (i.e. adding more servers, ‘microservices’, more cars) requires rewriting your existing architecture, forces you to deal with distributed systems, and also runs into limits.

Notes

In a lot of ways I am just reinventing the theory of distributed systems from first principles.

Takeaway

Imagine the following: You are a highly enthusiastic dynamic young software engineer. You land a job at Google. On the first day of work, you walk up to a few people on your team and ask them something like “Where can I look up how many YouTube videos there are?”.

Obvious question, no? Just pure interest, the sort of thing you’d ask for fun, or as part of getting oriented at your new job.

In response, all you get are exasperated sighs. Or worse, looks of confusion, as if the question doesn’t even make sense.

This is what big tech rot feels like. Deceptively simple questions turn out to be complex or impossible to answer4.

Sometimes this is just raw complexity. The system has so many layers that no one could possibly understand the whole.

Other times it’s downstream of optimizations. The system became lossier, costs were cut by 17% somewhere, and everyone was happy since the precise number of videos doesn’t matter anyway, right?


  1. Not you personally. Big Tech. Whatever you are cooking up in your garage, the odds of you having to think about engineering a lossy system are low. Standard tools (compression, deadlines) that everyone already reaches for as best-practice defaults are all you need. ↩︎

  2. Or any similar algorithmic feedscrolling app. In this regard they should all be the same. ↩︎

  3. To borrow a Claude-ism. ↩︎

  4. “Does YouTube really not know how many videos there are?” I have no idea, I never touched YouTube’s backend, this whole story is purely illustrative of a pattern I’ve seen multiple times. ↩︎