You are here
Home > java >

System Design Concepts: 13 Core Ideas With Examples

System Design Concepts: A Beginner’s Guide

System design concepts: load balancer, cache, database, message queue and CDN in one architecture diagramA system design question rarely has one right answer. It asks you to pick components, such as a cache, a queue or a database, and defend the trade-off. This article explains 13 core concepts in plain language, compares the options in tables, and applies them to six worked designs.

Have you ever thought how websites like Facebook handle millions of users at once, or how Netflix streams videos without constant buffering? The secret lies in solid system design.

System design is the art and science of building software that can grow, adapt, and survive in the real world. It’s about making smart choices when deciding how different parts of a system should work together. Whether you are creating a simple app or the next big social platform, good system design makes the difference between success and failure.

I remember when I first tackled system design. It seemed like an overwhelming mix of technical jargon and abstract concepts. But breaking it down into fundamental principles makes it much more approachable. That is exactly what we’ll do here.

This guide cuts through the complexity to explain core concepts in simple language. We’ll explore the building blocks of modern systems, key architectural patterns, and practical strategies for handling growth and performance.

The 13 system design concepts at a glance

Concept One-line definition Details
Scalability Handling more load by adding resources, either a bigger machine or more machines Scalability
Reliability Continuing to work correctly when parts fail Reliability
Availability The share of time the system is working and reachable, often stated in “nines” Availability
Performance How fast the system responds (latency) and how much it handles (throughput) Performance
Maintainability How easily the system can be changed, extended and debugged Maintainability
Load balancing Spreading requests across servers and routing around failed ones Load Balancers
Caching Keeping copies of frequently read data in faster storage Caching
Databases Choosing between relational (SQL) and NoSQL by consistency, schema and scaling needs Databases
Message queues Buffering messages so services can communicate asynchronously Message Queues
API gateway A single entry point that routes requests and handles authentication and rate limiting API Gateways
CDN Servers close to users that deliver static content CDNs
Replication Keeping copies of data on several servers for availability and read speed Replication
CAP theorem During a network partition, a distributed data store must choose between consistency and availability CAP Theorem

For definitions of the principles (reliability, availability, security, extensibility) plus distributed systems and networking basics, read System Design Fundamentals. This page covers the building blocks, patterns and worked scenarios. For the full series, see System Design Tutorials.

Why System Design Matters in Modern Applications?

System design is crucial in modern applications because it ensures scalability, reliability, and performance at scale. As user bases grow and data volumes explode, poorly designed systems lead to slow responses, frequent crashes, and costly inefficiencies.

Key reasons why system design matters:

– Handles growth: Prevents bottlenecks when traffic spikes
– Improves availability: Reduces downtime with fault tolerance
– Optimizes costs: Efficient resource usage lowers infrastructure expenses
– Enhances user experience: Fast, consistent performance keeps users engaged
– Supports future changes: Modular designs allow easier updates

From startups to tech giants, well-planned system architecture is what separates successful applications from those that fail under pressure.

Core System Design Concepts

Scalability

Scalability is your system’s ability to handle growth. Think of it like planning a restaurant:

Vertical Scaling is like upgrading your kitchen equipment. You are making your existing servers more powerful by adding better CPUs, more memory, or faster storage. It’s straightforward but has limits. Eventually, you can’t make a single machine any more powerful.

Horizontal Scaling is like opening multiple restaurant locations. Instead of one super-powerful server, you add more regular servers and distribute the work. This approach can scale almost infinitely but requires more complex coordination.

Horizontal_vs_Vertical_Scaling

As shown in the figure above, horizontal scaling distributes load across multiple servers through a load balancer, while vertical scaling involves upgrading a single server’s capacity. The diagram also shows database replication with primary and replica nodes working with a caching layer.

Most successful systems use both approaches strategically, vertical scaling for simplicity where possible, and horizontal scaling where necessary for massive growth.

Reliability

Reliability is the ability to keep working correctly when components fail. The main techniques are redundancy, removing single points of failure, graceful degradation (keeping core features alive when a part fails) and fault isolation (stopping one failure from spreading). For the formal definition, see Reliability in System Design Fundamentals.

Availability

Availability is the share of time a system is working and reachable. It is usually stated in “nines”. Each extra nine cuts the allowed downtime by a factor of ten.

Availability Common name Downtime allowed per year
99% two nines about 3.65 days
99.9% three nines about 8.76 hours
99.99% four nines about 52.6 minutes
99.999% five nines about 5.26 minutes

Reliability and availability are related but different. A system can be available (it answers requests) while returning wrong results, or be reliable but briefly unavailable during maintenance.

Performance

Performance comes down to two measures. Latency is how long one operation takes. Throughput is how many operations the system handles per unit of time. Lower latency and higher throughput are better, and they often trade off: caching reduces latency but adds the work of keeping the cache correct.

For interactive screens, Jakob Nielsen’s response-time limits are a common reference: about 0.1 seconds feels instantaneous, 1 second keeps the user’s flow of thought uninterrupted, and 10 seconds is the limit of the user’s attention (Nielsen Norman Group).

Maintainability

Maintainability is how easily a system can be changed, extended and debugged. Modular code, clear boundaries and good documentation keep the cost of change low as the system grows. For more, see Maintainability in System Design Fundamentals.

Building Blocks in System Design Concepts

Figure: A high-level system architecture showing the flow from users/clients through load balancers and API gateways to application servers, which connect to caching layers, message queues, and databases.

System Design Concepts Building BlocksLoad Balancers

Load balancers distribute incoming traffic across multiple servers. They’re the traffic cops of our system. They prevent any single server from becoming overwhelmed.

When you visit a popular website, you’re not actually hitting a single server. You’re being routed to one of many identical servers by a load balancer. This provides several benefits:

– Even distribution of traffic
– Seamless addition or removal of servers
– Automatic routing around failed servers
– Session persistence when needed

Load balancers can use various algorithms to decide which server gets each request:

Algorithm How It Works Advantages Disadvantages Best Use Cases
Round Robin Distributes requests sequentially to each server in rotation Simple to implement, equal distribution Doesn’t consider server load or capacity Servers with similar specifications and workloads
Least Connections Sends requests to server with fewest active connections Prevents overloading busy servers Requires tracking connection state Mixed workloads where connection times vary
IP Hash Uses client IP address to determine which server receives the request Session persistence – same client always goes to same server Uneven distribution if IP ranges aren’t diverse Applications requiring session stickiness

Caching

Caching keeps copies of frequently read data in faster storage so that repeated reads skip the slower source. It cuts latency and database load, and it adds one hard problem: stale data. As an illustration (your numbers will differ, so measure them), a query that takes 50 ms might be served from an in-memory cache in about 1 ms.

Strategy How it works Good for Main risk
Cache-aside The application checks the cache, and on a miss reads the database and stores the result Read-heavy data; the most common default Stale entries until they expire or are invalidated
Read-through The cache itself loads from the database on a miss The same cases, with simpler application code Needs a cache that supports it
Write-through Every write goes to the cache and the database together Data that must be readable right after it is written Slower writes; may cache data that is never read
Write-back The write goes to the cache first and to the database later Write-heavy workloads Data loss if the cache fails before it is flushed

Three decisions shape every caching design: what to cache (frequently read data and expensive results), where to cache it (browser, CDN, application, database) and how to invalidate it (a time-to-live, or an explicit delete when the data changes).

Databases

Databases store and manage your application’s data. Choosing the right database is one of the most consequential decisions in system design.

The two main categories are:

SQL (Relational) Databases:

– Structured data with predefined schema
– Strong consistency and transaction support
– Great for complex queries and relationships
– Examples: MySQL, PostgreSQL, SQL Server

NoSQL Databases:

– Flexible schema for unstructured data
– Typically scale horizontally better than SQL
– Often sacrifice some consistency for performance and availability
– Types include document (MongoDB), key-value (Redis), column-family (Cassandra), and graph (Neo4j)

You may go through detailed article on Types of NoSQL databases & Examples. Here’s a more detailed comparison:

Feature SQL Databases NoSQL Databases
Data Structure Structured data with tables, rows, and columns Flexible schemas: document, key-value, column-family, or graph
Schema Fixed schema, changes require migrations Dynamic schema, can evolve without downtime
Query Language SQL (Structured Query Language) Database-specific APIs or query languages
Transactions ACID compliant (Atomicity, Consistency, Isolation, Durability) Typically BASE (Basically Available, Soft state, Eventually consistent)
Scaling Primarily vertical scaling, complex horizontal scaling Designed for horizontal scaling
Use Cases Financial systems, CRM, ERP, complex queries Big data, real-time web apps, content management

Message Queues

Message queues enable asynchronous communication between services. They act as buffers that allow services to communicate without being directly connected. Examples include RabbitMQ, Apache Kafka, and Amazon SQS etc.

Benefits of using message queues include:

– Decoupling services for better fault isolation
– Handling traffic spikes by buffering messages
– Enabling background processing for non-urgent tasks
– Ensuring message delivery even if the recipient is temporarily unavailable

For example, when you place an order on an e-commerce site, the order might be placed in a queue for processing rather than processed immediately. This allows the site to remain responsive during high-traffic periods. Message queues are essential for building resilient, loosely-coupled systems.

API Gateways

API gateways serve as the entry point for client requests to your backend services. They handle:

– Request routing
– Authentication and authorization
– Rate limiting
– Request/response transformation
– Monitoring and analytics

An API gateway simplifies client interactions by providing a single entry point to multiple services. This is especially valuable in microservices architectures where dozens or hundreds of services might exist behind the scenes.

You may go through the article on ‘How To Implement API Gateway Spring Boot In Microservices?‘.

Content Delivery Networks (CDNs)

CDNs are distributed networks of servers that deliver web content to users based on their geographic location. They’re like having local warehouses for your products instead of a single central warehouse. CDNs come with the following characteristics:

– Reduce latency by serving content from the nearest location
– Decrease server load by handling static content delivery
– Provide protection against certain types of attacks

Popular CDN providers include Cloudflare, Akamai, and Amazon CloudFront.

Replication

Replication keeps copies of the same data on several servers. It improves availability (another copy can take over), read performance (reads spread across copies) and durability (a copy survives a failed server).

Setup How it works Trade-off
Leader-follower (older name: master-slave; also called primary-replica) One node accepts writes and copies them to followers, which serve reads Simple, but all writes go through one node
Multi-leader (older name: master-master) Several nodes accept writes Higher write availability, but conflicting writes must be resolved

Replication can be synchronous (the leader waits for followers before it confirms a write: safer, slower) or asynchronous (the leader confirms first: faster, but followers can lag, and a failover can lose recent writes). Replication lag also means a read from a follower can return older data than the leader holds.

CAP Theorem (Consistency, Availability, Partition Tolerance)

The CAP theorem describes what a distributed data store can promise when the network splits. Seth Gilbert and Nancy Lynch proved it in 2002 (paper). In the CAP sense:

  • Consistency: every read returns the most recent completed write, as if there were a single copy of the data.
  • Availability: every request that reaches a working node gets a response.
  • Partition tolerance: the system keeps working when messages between nodes are lost or delayed.

A network partition cannot be ruled out in a distributed system, so the practical choice is what to do during one. You can refuse some requests to stay consistent (CP), or answer every request and accept that some answers may be stale (AP). “CA” only describes a single node, where no partition can occur.

During a partition, you must… Choose Typical fit
never return stale or wrong data CP payments, ledgers, inventory counts
keep answering, even if some data is stale AP feeds, likes, product catalogs

Labels such as “CP database” and “AP database” are simplifications. Many databases let you tune consistency per request. For example, Cassandra lets you choose a consistency level per query, and DynamoDB offers strongly consistent reads as an option. Check the vendor documentation instead of relying on a label. For a second explanation, see Understanding the CAP Theorem.

Key Architectural Patterns in System Design

Microservices Architecture

Microservices architecture breaks an application into small, independent services that communicate over a network. Each service:

– Focuses on a specific business function
– Can be developed, deployed, and scaled independently
– Often has its own database

Think of microservices like specialized departments in a company, each handling specific responsibilities.

Advantages:

– Independent scaling and deployment
– Technology diversity (different services can use different tech stacks)
– Fault isolation (one failing service doesn’t bring down the entire system)
– Easier to understand and maintain individual services

Challenges:

– Network complexity
– Distributed system challenges (latency, consistency)
– Operational overhead
– Data consistency across services

Monolithic Architecture

In a monolithic architecture, all components of an application are interconnected and run as a single service.

Advantages:

– Simpler development and deployment
– Easier testing
– Better performance for internal calls

Challenges:

– Scaling requires replicating the entire application
– Changes affect the whole system
– Technology stack is fixed for the entire application

Despite the hype around microservices, many successful applications still use monolithic architectures, especially in their early stages.

Situation Leans toward
Small team, early product, boundaries still unclear A well-structured monolith
Independent teams, parts that need to scale differently Microservices
Operations that must be transactional across many data items A monolith, or carefully chosen service boundaries

Handling Scale and Performance

Database Sharding

Database sharding splits data across multiple database instances based on a sharding key.*Figure: Database sharding splits data across multiple database instances based on a sharding key. In this example, user data is distributed across three shards based on last name ranges (A-G, H-P, Q-Z).*

Sharding splits a database into smaller pieces (shards) distributed across multiple servers. It’s like dividing a phone book into volumes based on last names (A-F, G-M, N-Z).

Sharding approaches:

  • Horizontal sharding: Rows of a table are distributed across multiple databases
  • Vertical sharding: Different tables or columns are placed on different servers

Choosing a shard key. The shard key decides which shard stores a row. Range-based keys (like the A-G, H-P, Q-Z example in the figure) are easy to reason about but can create hotspots when one range gets most of the traffic. Hash-based keys spread data evenly but make range queries harder, because related rows land on different shards. Changing the key later usually means moving data, so choose it from your most common queries. Before you shard, try indexes, caching and read replicas, because sharding adds complexity.

Caching Strategies

Effective caching requires choosing the right strategy:

– What to cache (frequently accessed data, computation results)
– Where to cache (browser, CDN, application server, database)
– How to invalidate cache (time-based, event-based)
– How to handle cache misses

A thoughtful caching strategy can dramatically reduce database load and improve response times.

Asynchronous Processing

Not all operations need to happen immediately. Asynchronous processing:

– Improves user experience by not blocking the interface
– Handles time-consuming tasks in the background
– Manages workload spikes through queuing

For example, when we upload a video to YouTube, the video processing happens asynchronously. We don’t have to wait for encoding to complete before continuing to use the site.

Common System Design Challenges

Single Points of Failure

Any component that can take down the entire system if it fails is a single point of failure. Eliminate these through:

– Redundancy
– Failover mechanisms
– Distributed systems

I once worked on a system where we had redundant application servers but only one database server. Guess what failed first? Always identify and address single points of failure.

Data Consistency vs Availability

The CAP theorem states that distributed systems can provide only two of three guarantees:

– **Consistency**: All nodes see the same data at the same time
– **Availability**: Every request receives a response
– **Partition tolerance**: System continues to operate despite network failures

Different applications prioritize different aspects based on their needs. Banking systems typically prioritize consistency, while social media platforms might prioritize availability.

Non-functional Requirements to Consider

When designing systems, several non-functional requirements must be considered:

Security

Security encompasses protecting data and systems from unauthorized access and attacks. Key considerations include:

– Authentication and authorization
– Data encryption
– Input validation
– Regular security audits
– Protection against common attacks (SQL injection, XSS, CSRF)

Security should be built into the system from the beginning, not added as an after thought.

Compliance

Many systems must adhere to regulatory requirements such as:

– PCI DSS for payment card data
– SOC 2 for service organizations
– HIPAA for healthcare information
– GDPR for European user data

Understanding compliance requirements early in the design process can save significant rework later.

Cost

Cost optimization is crucial for sustainable systems. Considerations include:

– Infrastructure costs (servers, storage, network)
– Development costs
– License fees for third-party services
– Operational costs (monitoring, maintenance)

A well-designed system balances technical excellence with cost-effectiveness.

Disaster Recovery

Disaster recovery plans ensure business continuity in case of major failures:

– Regular backups
– Redundant systems in different geographic locations
– Documented recovery procedures
– Regular testing of recovery processes

Effective disaster recovery planning can mean the difference between a minor incident and a business-ending catastrophe.

How System Design Concepts Map to the Java and Spring Stack

These are common choices for Java teams, not the only ones. Each row links to a tutorial with working code.

Concept Common Java and Spring option Tutorial
Microservices architecture Spring Boot and Spring Cloud Microservices Architecture in Java, Spring Cloud Essentials
API gateway A gateway service in Spring Boot How to Implement an API Gateway in Spring Boot Microservices
Service discovery Eureka server and clients How to Register Microservices in Eureka Server
Service-to-service calls Feign client How to Implement Feign Client in Spring Boot Microservices
Fault tolerance (circuit breaker, retries) Resilience4j Fault Tolerance in Microservices with Resilience4j
Caching Redis with Spring Boot How to Implement Redis Cache in Spring Boot
Message queues and event streaming Apache Kafka with Spring Boot How to Work with Apache Kafka in Spring Boot
Central configuration Spring Cloud Config Server How to Implement Spring Cloud Config Server
NoSQL databases Document, key-value, column and graph stores Types of NoSQL Databases and Examples

Real-World System Design Examples Scenarios

We’ll walk through six system design scenarios that represent real-world challenges.

Scenario#1: URL Shortener

Problem: Create a service that converts long URLs into unique short codes and redirects users accordingly.

Concepts used: caching, replication, load balancing, databases.

Requirements:

  • Generate unique, collision-free short codes.
  • Redirect endpoint must be fast (low latency).
  • Handle heavy read traffic.
  • Optional analytics: track clicks per URL.

High-Level Design:

  1. API Layer:
    • POST /shorten accepts { longUrl } and returns { shortCode }.
    • GET /{shortCode} redirects to the original URL.
  2. Database:
    • Table: URL_MAPPING (id, long_url, short_code, created_at).
    • Use PostgreSQL for ACID properties.
  3. Code Generation:
    • Base62 encode the auto-increment id field to produce a short short_code.
  4. Caching:
    • Store recent mappings in Redis to serve GET in-memory.
  5. Scaling:
    • Load Balancer (AWS ELB) distributes API requests.
    • Read Replicas for the database to offload reads.

Trade-offs

  • Base62 of a unique ID versus hashing the URL: encoding a unique auto-increment ID never collides, but sequential codes are guessable and the ID generator becomes a coordination point at scale. Hashing the URL (for example MD5, truncated) avoids a central counter, but truncated hashes can collide, so you need collision handling.
  • Redirect type: a 301 (permanent) redirect can be cached by browsers, which lowers load but hides repeat clicks from your analytics. A 302 (temporary) redirect keeps every click visible to your server.
  • Relational DB vs NoSQL: SQL simplifies relationships and indexing for analytics.

Kindly go through a separate detailed article on URL Shortening System Design.

Scenario#2: Social Media Feed

Problem: Design a feed that displays recent posts from all followed users, ordered by recency or relevance.

Concepts used: message queues, caching, NoSQL databases.

Requirements

  • Follow and unfollow functionality.
  • Post creation.
  • Serve user timelines with low latency.

High-Level Design

  1. Data Model:
    • Users: { user_id, name }
    • Follows: { follower_id, followee_id }
    • Posts: { post_id, user_id, content, timestamp }
    • Timelines: { user_id, list<post_id> }
  2. Feed Generation:
    • Push Model: Fan-out writes: when a user posts, push post_id to all followers’ timelines using Kafka.
    • Pull Model: Compute feed on read by merging latest posts from followees.
  3. Storage:
    • Cassandra for storing timelines (wide-column, write-heavy).
    • Elasticsearch for searching posts by keywords.
  4. Caching:
    • Memcached for popular user timelines.

Trade-offs

  • Push increases write complexity but provides faster reads.
  • Pull simplifies writes but can cause higher read latency.
  • Many designs combine both models: push (fan-out on write) for typical accounts and pull (fan-out on read) for accounts with very large follower counts, because writing one post into millions of timelines is expensive. For feed ranking, see Feed Ranking Algorithms in System Design.

Kindly go through a separate detailed article on Social Media Feed System Design.

Scenario#3: Real-Time Messaging App

Problem: Implement a chat system supporting 1:1 and group messaging with delivery guarantees.

Concepts used: message queues, databases.

Requirements

  • Real-time message delivery.
  • Message persistence.
  • Delivery status: sent, delivered, read.

High-Level Design

  1. Communication:
    • WebSocket servers maintain persistent connections
    • Fallback to HTTP long-polling if needed.
  2. Message Broker:
    • RabbitMQ/Kafka for decoupling producers (clients) and consumers (delivery services).
  3. Storage:
    • Cassandra for high write throughput and partitioned storage by chat room.
  4. Delivery Flow:
    • Client sends message → WebSocket server → Broker → Delivery service → Recipient.

Trade-offs

  • WebSocket offers low latency but more complex scaling.
  • MQ ensures durability and retry handling.

Also check a detailed article on ‘How to design a Real-time Chat System‘.

Scenario#4: Cloud File Storage (Dropbox-like)

Problem: Build a system for uploading, storing, sharing, and versioning user files.

Concepts used: CDNs, databases for metadata.

Requirements

  • Store large files reliably.
  • Share via secure links.
  • Maintain version history.

High-Level Design

  1. File Service:
    • Chunk files into fixed-size parts, and choose a part size within your storage provider’s multipart-upload limits.
    • Parallel uploads to S3-compatible storage.
  2. Metadata Service:
    • PostgreSQL: { file_id, user_id, version, chunk_list, metadata }.
  3. Sharing:
    • Generate pre-signed URLs for secure, time-limited access.
  4. Versioning:
    • Keep each version’s chunk list; deduplicate unchanged chunks.
  5. Scaling & CDN:
    • Use CloudFront to cache popular files near users.

Trade-offs

  • Object storage is cost-effective but limits direct file modifications.
  • Chunked design increases complexity but improves reliability on flaky networks.

Kindly go through a separate detailed article on Designing a Distributed File Storage System.

Scenario#5: Ride-Sharing System (Uber-like)

Problem: Match riders with nearby drivers, calculate ETAs, and update locations in real time.

Concepts used: caching with a time-to-live, message queues.

Requirements

  • Real-time location tracking.
  • Efficient matching algorithm.
  • Dynamic ETA and surge pricing.

High-Level Design

  1. Location Service:
    • Ingest driver GPS updates into Redis with TTL for freshness.
  2. Matching Engine:
    • Use Geohash to index and query drivers near rider location
  3. Pricing Service:
    • Calculate fares based on distance/time and current demand.
  4. Event Streaming:
    • Kafka for asynchronous updates (ride requested, driver accepted, etc.).

Trade-offs

  • Frequent GPS updates increase load; adjust update interval.
  • Pre-computed geohash grids simplify lookups but may introduce edge cases at cell boundaries.

Scenario#6: Video Streaming Platform (YouTube-like)

Problem: Enable users to upload, transcode, store, and stream videos at various qualities.

Concepts used: message queues, CDNs.

Requirements

  • Support uploads up to several GB.
  • Transcode to multiple bitrates.
  • Low-latency playback with adaptive bitrate.

High-Level Design

  1. Upload Service:
    • Break into chunks → store raw in object storage.
  2. Transcoding Pipeline:
    • FFmpeg workers triggered by SQS to generate HLS/DASH formats.
  3. Storage & CDN:
    • S3 for segments; CloudFront for global delivery.
  4. Playback:
    • Video player requests playlist; adapts quality based on bandwidth.

Trade-offs 

  • Pre-transcoding uses significant compute but ensures smooth playback.
  • On-the-fly transcoding can save storage but risks latency spikes.

More worked designs: How to Design an E-commerce Checkout System, Real-Time Chat Application, Distributed File Storage System.

How to Answer a System Design Question: A 6-Step Framework

This is a common structure for talking through a design, not a standard.

  1. Clarify requirements. Separate functional needs (what it does) from non-functional ones (availability target, latency, expected users, read-to-write ratio).
  2. Estimate the scale. Rough numbers for requests per second and storage per year show which parts will be under pressure.
  3. Define the API and the data model. List the main endpoints and the entities they touch.
  4. Sketch the high-level design. Clients, load balancer, services, cache, database and queue.
  5. Go deep on the bottleneck. Pick the part most likely to fail or slow down, such as sharding, caching or replication, and explain your choice.
  6. State the trade-offs and failure modes. Say what happens when each component fails, and where you chose consistency or availability.

Practice with the System Design Interview Questions and Practice Set

FAQs on System Design Concepts

What are the most important system design concepts to know?

Start with scalability, availability, load balancing, caching, databases (SQL versus NoSQL), message queues and the CAP theorem. Then learn replication, sharding and the microservices-versus-monolith trade-off. The table near the top of this page defines each in one line.

How do you handle millions of requests per second?

Scale horizontally behind a load balancer, cache frequently read data, replicate databases for reads, shard when one database cannot hold the writes, and move slow work to a message queue. Measure first, and add each layer only when a measured bottleneck needs it.

What are common system design interview questions?

Typical questions are to design a URL shortener, a social media feed, a chat application, a file storage service, a ride-sharing system or a video streaming platform. Each one is a worked scenario on this page.

Key takeaways

  • Start from requirements: the availability target, latency and read-to-write ratio.
  • Add a component for a measured bottleneck, because every component adds a failure mode.
  • Use the table of nines to turn an availability target into allowed downtime.
  • Choose consistency or availability per feature, not per company.
  • Know the failure mode of each building block: stale cache entries, replication lag and duplicate messages in a queue.

Next, read System Design Fundamentals, follow the System Design Tutorials series, or see a full example in Java System Design: Hospital Management System.


Sources


Additionally, you might want to go through System Design Interview Questions & Practice Set.

2 thoughts on “System Design Concepts: 13 Core Ideas With Examples”

Leave a Reply



Top