Wiki: Building a web infrastructure for 10M user

For agents: Markdown version · Wiki index · Explore

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 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 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 To eliminate downtime during releases, the architecture was split into two isolated systems: an editing environment and a public serving environment.
  • 9:31 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 Instead of utilizing public cloud elasticity, the infrastructure relies on managed physical hosting in multiple data centers to ensure predictability and control.
  • 24:02 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 Addressing development velocity required introducing continuous integration, continuous delivery, test-driven development, and a service-oriented architecture.
  • 47:21 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