Many system design questions come down to a choice between two ideas that sound alike. These pages put each pair side by side: a short answer, a comparison table, when to use each, and how the choice shows up in an interview, with links to the lessons that teach it and the problems that test it.
Process or thread. Stateful or stateless. SQL or NoSQL. Shard or partition. Scale up or scale out. Push or pull. Strong or eventual.
Interviewers love these choices, because the honest answer is always, it depends. These pages show you what it depends on. Each pair side by side, animated, with the trade-off you can say out loud.
How work runs on a machine and across machines: the questions behind every capacity estimate.
Where the data lives, how it is split, and what the store promises you about it.
What a reader is allowed to see, and what happens when two writers touch the same row.
Who starts the conversation and how updates reach a client in real time.
The cryptography that sits under TLS, tokens and encryption at rest.
Which kind of design round you are in and what it is graded on.
Every comparison above rests on a handful of core lessons. These are the building blocks Codemia editorials link to most often; the system design roadmap puts them in order.
Each page starts with a one paragraph answer, then puts the two ideas side by side on the dimensions that matter in a design: cost, failure behavior, scaling and consistency. It ends with where the choice comes up in an interview and which Codemia problems make you face it.
SQL vs NoSQL, horizontal vs vertical scaling and strong vs eventual consistency come up in almost every design round, usually during the storage and scaling steps. Push vs pull and the real-time transport question come up in any feed, chat or notification design.
Lessons marked Free can be read without a subscription, including the whole System Design Fundamentals course. Other lessons show their first section for free.
Put the trade-offs to work
Pick a problem, design it against the clock, and get feedback from an AI interviewer that asks why you chose each piece.