# Building a web infrastructure for 10M user

- Speaker: [Yoav Abrahami](/wiki/speakers/yoav-abrahami.md)
- Event: [Reversim Summit 2013](/wiki/years/2013.md)
- Video: https://www.youtube.com/watch?v=C5XRptocF90
- Transcript: [/transcripts/2013/18-C5XRptocF90.md](/transcripts/2013/18-C5XRptocF90.md)
- Language: Hebrew · Type: talk · Level: intermediate
- Topics: [Scalability](/wiki/topics/scalability.md), [DevOps](/wiki/topics/devops.md), [Architecture](/wiki/topics/architecture.md), [Databases](/wiki/topics/databases.md)

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

## Summary

This talk explores the engineering journey of scaling a web platform to over 30 million users while transitioning from a monolithic architecture to a modular service-oriented system. The speaker shares hard-earned lessons on avoiding premature caching, implementing continuous delivery, and leveraging relational databases like MySQL for high-throughput key-value storage. Attendees learn practical strategies for managing state, utilizing CDNs effectively, and empowering development teams to ship code with high confidence.

## Key points

- [2:08](https://www.youtube.com/watch?v=C5XRptocF90&t=128s) The platform initially started as a simple monolithic architecture using Java, Hibernate, and Tomcat, which allowed fast initial development but required a complete rewrite later.
- [4:14](https://www.youtube.com/watch?v=C5XRptocF90&t=254s) The team discovered that application-level caching introduced massive complexity and invalidation issues, leading them to remove traditional caches entirely in favor of direct database lookups.
- [6:21](https://www.youtube.com/watch?v=C5XRptocF90&t=381s) To eliminate downtime during releases, the architecture was split into two isolated systems: an editing environment and a public serving environment.
- [9:31](https://www.youtube.com/watch?v=C5XRptocF90&t=571s) MySQL was successfully used as a high-performance NoSQL-style key-value store using GUIDs and append-only operations without transactions or locks.
- [14:48](https://www.youtube.com/watch?v=C5XRptocF90&t=888s) Instead of utilizing public cloud elasticity, the infrastructure relies on managed physical hosting in multiple data centers to ensure predictability and control.
- [24:02](https://www.youtube.com/watch?v=C5XRptocF90&t=1442s) A custom proxy and sharding architecture was built to handle massive media file storage, on-the-fly image manipulation, and global CDN distribution.
- [34:45](https://www.youtube.com/watch?v=C5XRptocF90&t=2085s) Addressing development velocity required introducing continuous integration, continuous delivery, test-driven development, and a service-oriented architecture.
- [47:21](https://www.youtube.com/watch?v=C5XRptocF90&t=2841s) Developers use custom deployment tooling and configuration management to safely push code to production within minutes while relying on automated monitoring.

## Takeaways

- Design your early architecture with the expectation that you will rewrite your core components within the first couple of years.
- Question the necessity of application caches, as they can introduce hidden failure modes and severe invalidation challenges.
- Separate your editing workflows from your public-facing serving infrastructure to protect the end-user SLA from deployment updates.
- Invest heavily in automated testing and continuous delivery pipelines to maintain high deployment velocity without sacrificing system stability.

## Questions this talk answers

- How can you scale a relational database to handle millions of requests without relying on complex caching layers?
- What is the best way to separate editing workflows from public-facing web serving to eliminate downtime?
- How do you implement continuous delivery and automated rollbacks safely in a large-scale engineering organization?

## Technologies

MySQL, Tomcat, Hibernate, Chef, Java, Memcached, Hadoop, HBase

## Tags

architecture, caching, continuous delivery, databases, devops, microservices, scaling
