# Cheat, Scale, Win

- Speaker: [Adam Lev Libfeld](/wiki/speakers/adam-lev-libfeld.md)
- Event: [Reversim Summit 2017](/wiki/years/2017.md)
- Video: https://www.youtube.com/watch?v=NSNmwETCCh0
- Transcript: [/transcripts/2017/59-NSNmwETCCh0.md](/transcripts/2017/59-NSNmwETCCh0.md)
- Language: Hebrew · Type: talk · Level: intermediate
- Topics: [Architecture](/wiki/topics/architecture.md), [Scalability](/wiki/topics/scalability.md), [Algorithms](/wiki/topics/algorithms.md), [Performance](/wiki/topics/performance.md)

> Written by an LLM from machine transcripts. It can contain errors. Check the transcript before you quote it.

## Summary

This talk explores how software engineers can balance the engineering triangle of fast, cheap, and good by deliberately introducing shortcuts and probabilistic methods. The speaker argues that aiming for absolute perfection is often a waste of resources and that developers should embrace approximation and caching to deliver business value efficiently. Through examples such as caching, Bloom filters, and Monte Carlo algorithms, the speaker demonstrates how trading precision for performance solves scalability challenges. Ultimately, listeners learn to recognize when "good enough" is the optimal strategy for system design.

## Key points

- [8:00](https://www.youtube.com/watch?v=NSNmwETCCh0&t=480s) Engineering and project management revolve around constraints of time, budget, and value.
- [10:00](https://www.youtube.com/watch?v=NSNmwETCCh0&t=600s) The classic project management dilemma dictates that you can only choose two out of fast, cheap, and good.
- [19:00](https://www.youtube.com/watch?v=NSNmwETCCh0&t=1140s) The speaker suggests that engineers should occasionally "cheat" and break strict rules to achieve better performance.
- [21:00](https://www.youtube.com/watch?v=NSNmwETCCh0&t=1260s) Using caches and CDNs is a common form of cheating that trades space for execution time.
- [22:00](https://www.youtube.com/watch?v=NSNmwETCCh0&t=1320s) Algorithms like Quicksort rely on statistical probability rather than deterministic guarantees to run fast.
- [27:00](https://www.youtube.com/watch?v=NSNmwETCCh0&t=1620s) Bloom filters allow developers to check set membership while accepting a controlled rate of collisions to save memory.
- [27:00](https://www.youtube.com/watch?v=NSNmwETCCh0&t=1620s) Systems do not need to be mathematically perfect; they just need to be accurate enough for the user's needs.

## Takeaways

- Embrace caching and approximation to trade memory or space for significant performance gains.
- Challenge the need for 100 percent precision when a probabilistic approach is much cheaper and faster.
- Evaluate system requirements to find where "good enough" meets the practical needs of the user.

## Questions this talk answers

- When is it appropriate to sacrifice data accuracy for system performance?
- How can probabilistic data structures like Bloom filters reduce memory consumption?
- How do you balance the trade-offs between development speed, cost, and system quality?

## Technologies

Redis

## Tags

algorithms, architecture, caching, performance, scaling, system design, tradeoffs
