Meta
41 design problems known to be asked at Meta.
Easy4
Asked at Amazon, Google, Microsoft +2
·16 min read
Singleton: One Instance, and the Global It Smuggles In
Asked at Amazon, Google, Microsoft +2
·20 min read
Strategy Pattern: Swap Behavior Without Touching the Caller
Asked at Amazon, Google, Microsoft +2
·14 min read
Designing Tic-Tac-Toe: A Low-Level Design Walkthrough
Asked at Google, Amazon, Microsoft +3
·20 min read
Medium28
Abstract Factory: Ship a Whole Family, Never a Mismatched Pair
Asked at Amazon, Google, Microsoft +2
·16 min read
Behavioral Patterns: How Objects Talk and Decide
Asked at Amazon, Google, Microsoft +3
·8 min read
Bloom Filters: The Yes/No That Saves a Disk Seek
Asked at Google, Amazon, Meta +3
·12 min read
Builder: Assemble Complex Objects Without the Telescoping Constructor
Asked at Amazon, Google, Microsoft +2
·17 min read
Caching Strategies: The Bet That Reads Repeat
Asked at Meta, Amazon, Netflix +3
·13 min read
CAP Theorem: The Choice You Only Make When the Network Breaks
Asked at Amazon, Google, Microsoft +3
·12 min read
Designing a Parking Lot: A Low-Level Design Walkthrough
Asked at Google, Amazon, Microsoft +3
·30 min read
Chain of Responsibility: Let the Request Find Its Own Handler
Asked at Amazon, Google, Microsoft +3
·15 min read
Composite Pattern: One size() Call for a File or Ten Thousand
Asked at Amazon, Google, Microsoft +2
·15 min read
How Consistent Hashing Powers Distributed Systems
Asked at Amazon, Google, Meta +2
·27 min read
Creational Patterns: Who Decides What Gets Built
Asked at Amazon, Google, Microsoft +3
·5 min read
Database Indexing: Why B-Trees Read Fast and LSM-Trees Write Fast
Asked at Amazon, Google, Meta +3
·13 min read
Database Replication: Copies That Disagree With Each Other
Asked at Amazon, Google, Meta +3
·15 min read
Dependency Inversion: Point the Arrow at an Abstraction
Asked at Amazon, Google, Microsoft +3
·8 min read
Factory Method: Let the Subclass Decide What to Build
Asked at Amazon, Google, Microsoft +2
·17 min read
Interface Segregation: Don't Make Callers Depend on What They Don't Use
Asked at Amazon, Google, Microsoft +3
·7 min read
Load Balancing: One Front Door for a Fleet That Keeps Changing
Asked at Amazon, Google, Netflix +3
·16 min read
Liskov Substitution: If Clients Must Check the Type, You Broke It
Asked at Amazon, Google, Microsoft +3
·8 min read
Mediator Pattern: Turn a Mesh of Dependencies Into a Star
Asked at Google, Microsoft, Meta +3
·15 min read
Observer Pattern: Broadcast State Without Knowing Who's Listening
Asked at Amazon, Google, Microsoft +3
·15 min read
Open/Closed: Add a Channel Without Touching the Core
Asked at Amazon, Google, Microsoft +3
·7 min read
Prototype: Clone a Ready-Made Object Instead of Rebuilding It
Asked at Amazon, Google, Microsoft +2
·17 min read
Proxy Pattern: The Stand-In Your Code Can't Tell Apart
Asked at Amazon, Google, Microsoft +3
·14 min read
Real-Time Updates: Polling, Long Polling, SSE, and WebSockets
Asked at Slack, Discord, WhatsApp +3
·16 min read
SOLID, Actually: Five Rules for Code That Survives Change
Asked at Amazon, Google, Microsoft +3
·4 min read
SQL vs NoSQL: Model the Access Pattern, Then Pick the Store
Asked at Amazon, Google, Netflix +3
·15 min read
Single Responsibility: One Reason to Change, One Owner
Asked at Amazon, Google, Microsoft +3
·7 min read
Structural Patterns: Composing Objects Into Bigger Things
Asked at Amazon, Google, Microsoft +3
·8 min read
Hard9
Design a Chat System
Asked at Meta, WhatsApp, Slack +3
·14 min read
Consensus & Leader Election: How a Cluster Agrees on One Truth
Asked at Google, Amazon, Microsoft +3
·17 min read
Database Sharding: When One Machine Stops Being Enough
Asked at Amazon, Google, Meta +3
·16 min read
Distributed Transactions: When One Business Action Spans Many Services
Asked at Amazon, Uber, DoorDash +3
·17 min read
Design a Key-Value Store
Asked at Amazon, Netflix, Uber +2
·23 min read
Design a News Feed
Asked at Meta, Twitter, Instagram +3
·13 min read
Raft, Driven: Watch a Cluster Elect, Replicate, and Heal
Asked at Google, Amazon, Microsoft +4
·20 min read
Storage Engines: LSM-Trees vs B-Trees
Asked at Google, Meta, Amazon +3
·14 min read
Visitor Pattern: Add Operations Without Editing the Classes
Asked at Google, Microsoft, Amazon +3
·15 min read