Library / Case Studies
Stack Overflow Architecture - High Scalability -
Update 2 : Stack Overflow Architecture Update - Now At 95 Million Page Views A Month Update: Sta...
By High Scalability engineers · High Scalability · Added 2026-10-12
All content belongs to High Scalability engineers / High Scalability. We only link to it and give credit. Report a problem
Learn this case study
About 37 min left. Your work is saved as you go.
What you are about to study
High Scalability explains a real system. You should know the basics: caching, queues and replication.
Ideas you will meet
- Distributed Systems
- Consensus, time, failure and the fundamentals of scale-out.
What we already know about this
Our own lessons on these ideas. Read them here before you start, so it makes sense.
Core Concepts: How Things Actually Work · 8 minChoosing a programming language for a systemWhy 'most popular' is the wrong question, and the criteria that actually decide which language suits which part of a system.Read here
"What is the most popular language?" is a moving target
Rankings such as the Stack Overflow Developer Survey, the TIOBE index and GitHub's Octoverse change every year and measure different things (what people use, search for, or commit). They are useful to understand the job market and ecosystem health, but popularity does not tell you which language fits your system. JavaScript/TypeScript, Python, Java, C#, C++, Go and others consistently rank high, and each is strong at different jobs.
Criteria that actually decide
- Team skills and hiring: productivity today and ability to hire later.
- Ecosystem: libraries, frameworks, tooling, community support for your problem (web, data, mobile, embedded).
- Performance profile: raw speed, memory use, and latency predictability (garbage-collection pauses matter for some systems).
- Concurrency model: threads, async/await, goroutines, actors. Fit with your workload (many connections versus heavy computation).
- Safety and correctness: static types, memory safety, null handling, how many bugs the language prevents.
- Deployment and operations: single binary or runtime, startup time (serverless!), container size, observability support.
- Interoperability and maturity: how well it talks to existing systems; long-term support.
- Cost of change: how easy it is to refactor and onboard people.
Where each family typically fits
Language Typical strengths Common uses JavaScript / TypeScript Runs in browsers; huge ecosystem; one language front to back; async I/O Web front ends, APIs, tooling, serverless Python Readable; vast data, science and ML libraries Data pipelines, ML, scripting, automation, back ends Java / Kotlin Mature, fast JIT, rich enterprise ecosystem, strong tooling Large back ends, Android (Kotlin), big-data systems C# Productive, strong tooling, good performance Enterprise software, games (Unity), Windows and cloud services Go Simple, fast to compile, excellent concurrency, single binaries Network services, infrastructure, cloud tooling Rust Memory safety without a garbage collector, high performance Performance-critical services, systems, browsers, embedded C / C++ Maximum control and speed Databases, game engines, operating systems, trading systems Swift / Kotlin First-class mobile platforms iOS and Android apps PHP / Ruby Fast web development, large frameworks Websites, content systems, rapid prototyping SQL Declarative data queries Anywhere there is a relational database or warehouse 100%Figure SDA-CORE-22-1 · Where each family typically fits · © forcsguy.com
Polyglot systems
Real systems usually mix languages: a TypeScript web tier, Go or Java services, Python for data and ML, SQL for analytics, and a systems language for the hottest path. This is healthy if boundaries are clean APIs and you accept the costs: more build systems, more skills, more security patching. Do not add a language for novelty.
Practical advice
- Start with what the team knows, unless the problem clearly demands otherwise.
- Benchmark your own workload before choosing on speed claims.
- Prefer boring, well-supported technology for the core, and experiment at the edges.
- Check the hiring market and operational maturity (profilers, debuggers, libraries) for the long term.
- Remember that architecture, data and algorithms usually affect performance far more than the language does.
Real-world reading
Related reading
- Performance Impact of Removing Out of Band Garbage Collector (OOBGC) at GithubGithub engineers · GithubCase Studies
- Performance Optimization by Tuning Garbage CollectionAtlassian engineers · AtlassianCase Studies
- Garbage Collection in Java Applications at LinkedInLinkedIn engineers · LinkedInCase Studies
- Fixing Linux filesystem performance regressions at LinkedInLinkedIn engineers · LinkedInCase Studies
Show 6 moreShow fewer
- Solr: Improving Performance for Batch Indexing at BoxBox engineers · BoxCase Studies
- Performance Optimization on OS, Storage, Database, NetworkStackify engineers · StackifyCase Studies
- Couchbase Ecosystem at LinkedInLinkedIn engineers · LinkedInCase Studies
- Amazon Redshift and the art of performance optimization in the cloudAllthingsdistributed engineers · AllthingsdistributedCase Studies
- Stack Overflow Architecture - High Scalability -High Scalability engineers · High ScalabilityCase Studies
- Systems Performance (2nd edition)Brendan Gregg · PearsonBooks
Go deeper on this
A path through videos, articles, other case studies and code on the same ideas as Stack Overflow Architecture - High Scalability -.
Warm upGet the vocabulary first.
Books · Free from the author
Concurrent and Distributed Systems (Cambridge lecture notes)
Eight lectures on time, broadcast, replication, consensus and transactions, with notes, slides and video. Free from the author under CC BY-SA.
University of CambridgeIntermediate
Books · Free from the author
Computer Networks: A Systems Approach
How networks are built and why: protocols, routing, congestion control and the internet's architecture. The authors publish it free online under CC BY 4.0.
Systems ApproachIntermediate
WatchHow others solve the same problem, on video.
Videos belong to their creators and play from YouTube. More on YouTube (opens in a new tab)
ReadEngineers explain it in their own words.
Blogs · Free from the author · Read here
Scalable Web Architecture and Distributed Systems
A full chapter on the building blocks of large websites: availability, performance, reliability, scalability, caches, proxies, indexes, load balancers and queues. Free to read here under CC BY 3.0.
The Architecture of Open Source ApplicationsBeginner40 min
Papers · Read here
Facebook’s photo storage
This paper describes Haystack, an object storage system optimized for Facebook’s Photos application. Facebook currently stores over 260 billion images, which translates to over 20 petabytes of data.
USENIXIntermediate
See it in another companyThe same ideas, a different system.
Case Studies · Read here
Aroma: Using ML for Code Recommendation at Facebook
Thousands of engineers write the code to create our apps, which serve billions of people worldwide. This is no trivial task—our services have grown so diverse and complex that the codebase contains…
FacebookIntermediate
Case Studies · Read here
Brooklin: Distributed Service for Near Real-Time Data Streaming at LinkedIn
Brooklin—a distributed service for streaming data in near real-time and at scale—has been running in production at LinkedIn since 2016, powering thousands of data streams and over 2 trillion messages per day. Today, w...
LinkedInIntermediate
Read the codeSee how it looks when it is real.
GitHub
Engineering Blogs
A huge directory of company engineering blogs to learn from real production systems.
kilimchoiIntermediate
GitHub
Awesome Scalability
Curated reading list of articles on the architecture of scalable, reliable systems.
binhnguyennusIntermediate
Keep learning
Loading community…