DEV Community

Cover image for System Design Basics: Core Concepts Every Engineer Must Know
Gowtham Potureddi
Gowtham Potureddi

Posted on

System Design Basics: Core Concepts Every Engineer Must Know

System Design Basics: Core Concepts Every Engineer Must Know

Every large system, and every system design interview, is built from the same handful of ideas. Once you know them, architectures that looked intimidating become readable: you see a load balancer in front of stateless servers, a cache shielding a sharded database, a queue absorbing a burst of writes, and you understand why each piece is there. These are the core concepts — the shared vocabulary of backend engineering — and they are worth learning not just to pass an interview but to reason about any system you build or operate.

This guide walks the basics in plain language, each as a trade-off rather than a definition. The goal is not to memorise terms; it is to know, for each concept, the problem it solves and what it costs, so you can reach for the right one on the job and defend the choice when someone pushes back. Learn these, and the famous "design X" questions stop being magic — they are just these building blocks, assembled for a specific problem.

Title card for a system design basics guide covering the core concepts every engineer must know, showing icons for scaling, databases, caching, the CAP theorem and message queues arranged as a connected architecture, on a dark citrus-and-lavender background.

Scaling: vertical vs horizontal, and why services go stateless

The first basic is how a system grows. Vertical scaling (scaling up) means a bigger machine — more CPU, RAM, and disk. It is simple and needs no code changes, but it has a hard ceiling and a single point of failure: one box can only get so big, and when it dies, everything is down. Horizontal scaling (scaling out) means more machines working together behind a load balancer. There is no ceiling and no single point of failure, but it brings distributed-systems complexity — and it only works if your servers are stateless.

Statelessness is the key idea. If each server keeps user session data in its own memory, a user is tied to one server and you can't freely add or remove boxes. Push that state into a shared store (a database or a cache like Redis), and any server can handle any request — now you can scale out, load-balance freely, and survive a server dying. The trade-off to state: scale up for simplicity until you hit the ceiling, then scale out — but only after you make the service stateless so any box can serve any request.

A diagram contrasting vertical and horizontal scaling, showing vertical scaling as one server growing bigger with more CPU, memory and disk but keeping a single point of failure and a hard ceiling, and horizontal scaling as many stateless servers behind a load balancer with session state pushed to a shared store so any server can handle any request, with a note that statelessness is what makes scaling out possible.

Databases: SQL vs NoSQL, replication, and sharding

The data layer is where most design decisions concentrate. The first choice is SQL vs NoSQL. Relational (SQL) databases give you transactions, joins, and strong consistency over structured data — reach for them when correctness matters (payments, orders). NoSQL databases (document, key-value, wide-column) give you horizontal scale, flexible schemas, and high write throughput, at the cost of weaker joins and looser consistency — reach for them for feeds, logs, sessions, and huge catalogues.

Two scaling moves apply to both:

  • Replication — keep copies of the data on multiple nodes. Reads spread across replicas (read scale), and if the primary fails a replica is promoted (availability). The catch is replication lag: a replica can be slightly behind, so a read right after a write may see stale data.
  • Sharding — split the data across nodes by a key so each node holds a slice. This is the only way to scale writes and total storage past one machine, but it adds a shard-key choice, hotspots, and cross-shard queries.

The trade-off to state: SQL for transactions and strong consistency, NoSQL for scale and flexibility; replicate for read scale and failover, and shard when writes or data outgrow a single node — knowing replication adds lag and sharding adds cross-shard complexity.

A diagram of the database layer, showing SQL chosen for transactions, joins and strong consistency versus NoSQL for horizontal scale, flexible schema and high writes, plus replication where a primary copies to read replicas for read scale and failover with some replication lag, and sharding where data is split by key across nodes to scale writes and storage.

System design
HLD · Design a URL shortener · 45 min
Choose SQL vs NoSQL and a sharding plan, out loud

Practise on Zynter →

The speed layer: caching, CDNs, and load balancing

Three concepts make a system fast and keep it balanced. A cache (like Redis or Memcached) stores hot data in memory so repeated reads skip the slow database — huge for read-heavy workloads, but you must handle staleness and invalidation (cache-aside and write-through are the common strategies, and every cache needs a TTL). A CDN caches static content and media at edge locations near users, cutting latency and offloading your origin — watch the cost and invalidation. A load balancer spreads traffic across your servers and removes a single point of failure, using algorithms like round-robin, least-connections, or consistent hashing.

The trade-off to state: cache hot reads in memory and serve static assets from a CDN at the edge to cut latency, and put a load balancer in front so traffic spreads and no single server is a bottleneck — the price of caching is staleness, so always name your invalidation and TTL. These three are in almost every design, which is why interviewers expect you to reach for them automatically.

A diagram of the speed layer in system design, showing a load balancer spreading incoming requests across several app servers, a cache holding hot data in memory so repeated reads skip the database, and a CDN serving static content and media from edge locations near users, with notes that caching trades freshness for latency and needs invalidation and a TTL.

System design
HLD · Design a news feed · 45 min
Place a cache, CDN and load balancer and defend each, out loud

Practise on Zynter →

Consistency and availability: CAP and consistency models

The deepest basic is about trade-offs under failure. The CAP theorem says that when a network partition happens — some nodes can't talk to others — a distributed system must choose between consistency (every read sees the latest write) and availability (every request still gets a response). You can't have both during the partition. In practice you build CP systems that reject requests to stay correct (a payment ledger) or AP systems that stay available and reconcile later (a social feed).

Related is the spectrum of consistency models: strong (every read sees the latest write), eventual (replicas converge over time, so reads can be briefly stale), read-your-writes (you always see your own updates), and monotonic (you never see time go backwards). The skill is matching the model to the feature — a bank balance needs strong consistency; a like count is fine with eventual. The point to state plainly: name which of consistency or availability you're trading under a partition, and pick a consistency model that fits the feature — correctness where it matters, staleness where it's harmless.

Communication: synchronous APIs vs asynchronous queues

The last basic is how components talk. Synchronous communication — a service calls another over an API (REST/gRPC) and waits for the response — is simple and gives an immediate answer, but it couples the two services: if the callee is slow or down, the caller is stuck, and load spikes propagate. Asynchronous communication — a service drops a message on a queue (Kafka, SQS, RabbitMQ) and a consumer processes it later — decouples the two, absorbs bursts, and smooths load, at the cost of complexity and eventual (not immediate) processing.

Reach for sync when the caller needs the result now (a read, a login); reach for a queue to decouple services, buffer traffic spikes, and run slow or background work (sending emails, processing uploads, fan-out). The trade-off to state: use synchronous APIs when you need an answer immediately, and a message queue to decouple services and buffer bursts for async work — trading instant results for resilience and scale.

How to put the basics together

Knowing each concept in isolation is the start; the skill is combining them for a problem. A read-heavy feed becomes a load balancer in front of stateless servers, a cache and CDN for hot content, read replicas, and a NoSQL store sharded by user. A payment system becomes a single leader with SQL transactions, idempotency keys, and strong consistency because double-charging is unacceptable. Recognising which basics a workload wants — and saying why — is exactly what a design round grades.

That combining-under-questioning is the part reading can't teach. You can know every concept here and still freeze when a live interviewer asks "where does the write go when the primary is down?" or "what happens to your cache when that value changes?". Closing the gap between knowing the basics and defending a design built from them only happens by doing it out loud, against follow-ups.

Frequently asked questions

What are the core concepts of system design?

The essentials are: scaling (vertical vs horizontal and why services go stateless), the database layer (SQL vs NoSQL, replication for read scale and failover, sharding to scale writes), the speed layer (caching, CDNs, and load balancing), consistency and availability (the CAP theorem and consistency models like strong and eventual), and communication (synchronous APIs vs asynchronous message queues). A few more round it out — consistent hashing, idempotency, and rate limiting — but those five clusters cover the vocabulary almost every architecture and every design interview is built from. The goal is to know each as a trade-off: the problem it solves and what it costs, so you can reach for the right one and justify it.

What is the difference between vertical and horizontal scaling?

Vertical scaling (scaling up) means making one machine more powerful — more CPU, memory, and disk. It is simple and needs no code changes, but it has a hard ceiling and leaves a single point of failure. Horizontal scaling (scaling out) means adding more machines behind a load balancer, which has no ceiling and no single point of failure but introduces distributed-systems complexity. The crucial requirement for scaling out is statelessness: if servers keep session state in local memory, users are pinned to a server and you can't freely add or remove boxes, so you push state into a shared store (a database or cache) and let any server handle any request. In short, scale up for simplicity until the ceiling, then scale out once the service is stateless.

When should I use SQL vs NoSQL?

Use a SQL (relational) database when you need transactions, joins, and strong consistency over structured data — payments, orders, inventory, anything where correctness is non-negotiable. Use a NoSQL database when you need horizontal scale, a flexible schema, or very high write throughput and can tolerate weaker joins and looser consistency — social feeds, logs, session stores, large catalogues. The honest interview answer never stops at the name; it ties the choice to the requirement, for example "this is write-heavy and schema-flexible, so a wide-column store sharded by user fits, and I'll accept eventual consistency because a few seconds of staleness is fine here."

What is the CAP theorem in simple terms?

CAP says that when a network partition occurs — some nodes cannot communicate with others — a distributed system must choose between consistency (every read returns the latest write) and availability (every request still gets a response). You cannot guarantee both during the partition. In practice you design CP systems that sacrifice availability to stay correct, like a payment ledger that rejects a request it can't confirm, or AP systems that stay available and reconcile later, like a social feed that may briefly show stale data. The interviewer wants you to name which you are trading and why it fits the feature, not to recite the acronym.

How do I practise system design concepts out loud?

Knowing the basics is one thing; deploying them in conversation under questioning is another. On Zynter, the system design track runs voice mock interviews modelled on real company loops — you sketch an architecture on a shared canvas, justify each concept you reach for (why that database, cache strategy, or consistency model) to a voice interviewer that follows up ("what breaks when the primary fails?"), and get a debrief on problem solving, communication, technical execution and time management. It is a genuine system design mock interview on demand, and the score is a practice signal, not a hiring decision.

Practise it on Zynter

Knowing the basics gets you to the start line. The offer is won assembling them out loud.

Pick a high-level design scenario, sketch it on a shared canvas, and justify every concept you reach for — scaling, database, cache, consistency, queue — to a voice interviewer that keeps pushing, then read the debrief. Zynter.ai is on-demand mock interviews modelled on real company loops, with 150+ rounds across 20 companies (Sep 2026), including high-level design scenarios from URL shorteners to ride-sharing — about $8–$12 for a full 60-minute mock, and two free credits to start.

Practise a system design round →
Browse all interview tracks

Top comments (0)