InterviewTreedInterviewTreed
All learning paths

Programming & Frameworks

System Design & Microservices

Prepare for system design and microservices interviews, covering scalable architecture, distributed systems, service communication, databases, caching, resilience, and real-world architecture decisions.

Your learning roadmap

Explore the key concepts

Use these subtopics as a study checklist. Start with the fundamentals, then progress to practical examples and interview preparation.

System design fundamentals

Understand the core principles of system design, including components, interfaces, data flow, scalability, reliability, and architectural trade-offs.

Start learning

Introduction to system design interviews

Learn how to approach system design interviews by clarifying requirements, estimating scale, proposing architectures, evaluating trade-offs, and communicating design decisions.

Start learning

Functional and non-functional requirements

Distinguish functional requirements from non-functional requirements and understand how features, performance, availability, security, and scalability shape system architecture.

Start learning

Requirement gathering and clarification

Learn to gather and clarify system requirements by identifying users, core workflows, constraints, assumptions, expected traffic, and business priorities.

Start learning

High-level and low-level design

Compare high-level architecture design with low-level component design and understand how services, databases, APIs, classes, and interactions are represented.

Start learning

Monolithic architecture

Understand monolithic application architecture, where application functionality is deployed as a single unit, and explore its structure, benefits, and limitations.

Start learning

Microservices architecture

Explore microservices architecture, where independently deployable services implement separate business capabilities and communicate through defined interfaces.

Start learning

Monolith vs microservices

Compare monolithic and microservices architectures in terms of deployment, scalability, development complexity, data management, reliability, and operational overhead.

Start learning

Service decomposition strategies

Learn how to divide applications into services using business capabilities, domain boundaries, data ownership, and independent deployment requirements.

Start learning

Domain-Driven Design (DDD)

Understand Domain-Driven Design and how business domains, models, and domain boundaries guide the architecture of complex software systems.

Start learning

Bounded contexts and ubiquitous language

Define bounded contexts and ubiquitous language to establish clear domain boundaries and consistent business terminology across development teams.

Start learning

Domain model and aggregates

Design domain models using entities, value objects, aggregates, and aggregate roots to maintain business rules and consistency within domain boundaries.

Start learning

Scalability fundamentals

Understand system scalability and how architecture, infrastructure, databases, and application components respond to increasing users and workloads.

Start learning

Vertical and horizontal scaling

Compare vertical scaling and horizontal scaling and understand their effects on resource capacity, availability, cost, and application architecture.

Start learning

Availability and reliability

Design systems for availability and reliability using redundancy, failover, health monitoring, recovery mechanisms, and service-level objectives.

Start learning

Fault tolerance and resilience

Build fault-tolerant systems that continue operating during component failures using redundancy, isolation, recovery, and graceful degradation.

Start learning

Performance and latency

Understand application performance and latency, identify sources of response delays, and explore techniques for reducing end-to-end request time.

Start learning

Throughput and concurrency

Measure throughput and concurrency and understand how systems process simultaneous requests, manage shared resources, and handle increasing workloads.

Start learning

Load balancing

Distribute incoming requests across multiple application instances using load-balancing algorithms, health checks, and traffic distribution strategies.

Start learning

Reverse proxies

Understand reverse proxies as intermediaries between clients and backend services and explore routing, TLS termination, caching, and request forwarding.

Start learning

API gateway pattern

Implement the API Gateway pattern to provide a unified entry point for microservices, handling routing, authentication, rate limiting, and request aggregation.

Start learning

Service discovery

Understand service discovery mechanisms that allow distributed services to locate one another dynamically through registries, DNS, or orchestration platforms.

Start learning

Inter-service communication

Explore communication patterns between microservices, including synchronous calls, asynchronous messaging, service contracts, and failure handling.

Start learning

Synchronous communication

Understand synchronous service communication using request-response interactions and evaluate its effects on latency, availability, and service dependencies.

Start learning

Asynchronous communication

Use asynchronous communication to decouple services through messages and events, improving scalability and reducing direct runtime dependencies.

Start learning

REST API communication

Design REST-based communication between services using HTTP methods, resource-oriented endpoints, JSON payloads, and consistent API contracts.

Start learning

gRPC fundamentals

Understand gRPC communication using Protocol Buffers, service definitions, generated clients, HTTP/2, and unary and streaming RPC methods.

Start learning

GraphQL fundamentals

Explore GraphQL schemas, queries, mutations, resolvers, and type systems for flexible API communication and efficient client-specific data retrieval.

Start learning

Message queues and event streaming

Understand message queues and event streaming platforms and how they enable asynchronous communication, buffering, event delivery, and service decoupling.

Start learning

Event-driven architecture

Design event-driven systems in which services publish and consume events to communicate asynchronously and react to changes in business state.

Start learning

Apache Kafka fundamentals

Learn Apache Kafka architecture, including brokers, topics, partitions, producers, consumers, consumer groups, offsets, and message retention.

Start learning

RabbitMQ fundamentals

Understand RabbitMQ messaging concepts such as exchanges, queues, bindings, routing keys, acknowledgements, and reliable message delivery.

Start learning

Database design for distributed systems

Design data storage for distributed applications by considering service ownership, consistency, availability, replication, partitioning, and independent data management.

Start learning

Database per service pattern

Apply the database-per-service pattern to give each microservice ownership of its data and understand its impact on isolation and cross-service queries.

Start learning

Shared database pattern

Understand the shared database pattern, where multiple services access a common data store, and evaluate its benefits, coupling, and maintenance challenges.

Start learning

SQL and NoSQL database selection

Compare relational SQL databases and NoSQL databases and select suitable storage technologies based on relationships, consistency, query patterns, and scalability.

Start learning

Database replication

Understand database replication techniques for maintaining multiple copies of data and explore primary-replica architectures, synchronization, and failover.

Start learning

Database sharding

Scale database workloads through sharding by distributing records across multiple database nodes using shard keys and routing strategies.

Start learning

Database partitioning

Organize large datasets into logical partitions and understand range, list, and hash partitioning for performance and data management.

Start learning

Distributed transactions

Understand transactions spanning multiple services or databases and explore the challenges of atomicity, consistency, coordination, and failure recovery.

Start learning

Two-phase commit (2PC)

Learn the two-phase commit protocol, including prepare and commit phases, coordinator responsibilities, participant behavior, and distributed transaction limitations.

Start learning

Saga pattern

Implement the Saga pattern to coordinate distributed business transactions through local transactions and compensating actions across multiple services.

Start learning

Transactional outbox pattern

Use the transactional outbox pattern to reliably publish integration events by storing business changes and outgoing messages within the same database transaction.

Start learning

CQRS pattern

Understand Command Query Responsibility Segregation and separate write operations from read operations to support different data models and workload requirements.

Start learning

Event sourcing

Design event-sourced systems that persist state changes as an ordered sequence of events and reconstruct current application state through event replay.

Start learning

Caching fundamentals

Understand caching concepts, cache levels, expiration, eviction, and consistency, and learn how caching reduces latency and backend workload.

Start learning

Cache-aside pattern

Implement the cache-aside pattern by checking the cache before retrieving data from the database and updating cached entries when required.

Start learning

Write-through and write-behind caching

Compare write-through and write-behind caching strategies and understand how each approach handles cache updates, persistence, and consistency trade-offs.

Start learning

Distributed caching with Redis

Use Redis as a distributed cache across multiple application instances and explore data structures, expiration, serialization, and cache access patterns.

Start learning

Cache invalidation strategies

Explore cache invalidation techniques such as time-to-live expiration, explicit deletion, versioning, and event-based invalidation to prevent stale data.

Start learning

Content delivery networks (CDN)

Understand content delivery networks and how geographically distributed edge servers cache and deliver static and dynamic content closer to users.

Start learning

Circuit breaker pattern

Apply the circuit breaker pattern to prevent repeated calls to failing services using closed, open, and half-open states and recovery thresholds.

Start learning

Retry and timeout patterns

Design reliable service communication using timeouts, retry policies, exponential backoff, and jitter while avoiding retry storms and cascading failures.

Start learning

Bulkhead pattern

Use the bulkhead pattern to isolate resources and service dependencies so that failures or overload in one component do not affect the entire application.

Start learning

Rate limiting and throttling

Control incoming request rates using rate limiting and throttling techniques such as token bucket, leaky bucket, and fixed or sliding windows.

Start learning

Idempotency and duplicate request handling

Design idempotent operations and use idempotency keys to prevent duplicate processing when clients retry requests or network failures occur.

Start learning

Health checks and service resilience

Implement readiness, liveness, and dependency health checks to detect unhealthy services and support resilient traffic routing and recovery.

Start learning

Distributed locking

Coordinate access to shared resources across distributed application instances using distributed locks, leases, expiration, and failure recovery strategies.

Start learning

Distributed consensus fundamentals

Understand distributed consensus and how nodes agree on shared state or decisions despite network failures, node failures, and communication delays.

Start learning

CAP theorem

Understand the CAP theorem and its implications for consistency, availability, and partition tolerance when designing distributed data systems.

Start learning

Consistency and availability trade-offs

Evaluate consistency and availability trade-offs in distributed systems and understand how application requirements influence data access behavior during failures.

Start learning

Eventual consistency

Understand eventual consistency and how replicated data converges over time, including handling temporary inconsistencies in distributed applications.

Start learning

Strong consistency

Explore strong consistency guarantees and understand how coordinated reads and writes ensure that clients observe the latest committed data.

Start learning

Distributed systems fundamentals

Learn distributed systems concepts including nodes, network communication, replication, coordination, partial failures, fault tolerance, and consistency.

Start learning

Service orchestration and choreography

Compare orchestration and choreography approaches for coordinating microservice workflows and understand centralized coordination versus event-driven collaboration.

Start learning

Microservices security

Secure microservices architectures through identity management, service authorization, encrypted communication, secrets protection, and network security controls.

Start learning

Authentication and authorization

Understand authentication and authorization in distributed applications and implement identity verification and access control across service boundaries.

Start learning

OAuth 2.0 and JWT

OAuth 2.0 and JWT: Learn its key concepts, practical implementation, architecture, and interview considerations.

Start learning

Service-to-service authentication

Secure communication between backend services using service identities, client credentials, mutual TLS, and managed identity mechanisms.

Start learning

Secrets management

Manage application credentials, API keys, certificates, and connection strings securely using centralized secret stores and controlled access policies.

Start learning

Observability fundamentals

Understand observability through metrics, logs, and traces and learn how these signals help diagnose failures and understand distributed application behavior.

Start learning

Centralized logging

Collect and aggregate logs from multiple services into centralized platforms and use structured logging, correlation identifiers, and searchable events for troubleshooting.

Start learning

Distributed tracing

Trace requests across multiple microservices using trace and span identifiers to identify latency, dependencies, and failures in distributed workflows.

Start learning

Metrics and monitoring

Monitor system health and application performance using metrics such as latency, throughput, error rates, resource utilization, and service availability.

Start learning

OpenTelemetry fundamentals

Explore OpenTelemetry APIs, SDKs, instrumentation, collectors, and exporters for generating and exporting traces, metrics, and logs.

Start learning

Prometheus and Grafana

Collect and query application metrics with Prometheus and build monitoring dashboards and visualizations using Grafana.

Start learning

Microservices testing strategies

Explore testing approaches for distributed applications, including unit, integration, contract, component, and end-to-end testing.

Start learning

Contract testing

Verify service integration contracts using consumer-driven contract testing and ensure that independently developed services remain compatible.

Start learning

Integration and end-to-end testing

Test communication and workflows across multiple services using integration and end-to-end tests, including external dependencies and failure scenarios.

Start learning

Containerization with Docker

Package microservices into Docker containers and understand images, containers, Dockerfiles, networking, volumes, and container orchestration requirements.

Start learning

Kubernetes fundamentals

Understand Kubernetes architecture and core resources such as clusters, nodes, pods, deployments, services, ConfigMaps, and Secrets.

Start learning

Microservices deployment strategies

Explore deployment approaches for microservices, including rolling updates, independent service releases, environment promotion, and automated rollout management.

Start learning

Blue-green and canary deployments

Implement blue-green and canary deployment strategies to release microservice changes gradually, validate behavior, and reduce production deployment risks.

Start learning

CI/CD for microservices

Design CI/CD pipelines for independently buildable and deployable microservices, including automated testing, container image publishing, and release orchestration.

Start learning

Infrastructure as Code

Manage infrastructure through version-controlled code using tools such as Terraform and declarative configuration for repeatable environment provisioning.

Start learning

Microservices performance optimization

Optimize microservice performance by analyzing service latency, network calls, database access, serialization, caching, and resource utilization.

Start learning

Designing scalable distributed applications

Design distributed applications that scale through independent services, asynchronous processing, partitioned data, caching, load balancing, and resilient communication.

Start learning

Real-world system design case studies

Apply system design principles to practical architecture problems by identifying requirements, estimating capacity, selecting components, and evaluating trade-offs.

Start learning

URL shortener system design

Design a scalable URL shortening service covering identifier generation, redirects, database schema, caching, analytics, and high-volume request handling.

Start learning

E-commerce system design

Design an e-commerce platform covering product catalogs, inventory, shopping carts, orders, payments, search, and distributed transaction management.

Start learning

Notification service design

Design a notification platform that delivers email, SMS, and push messages using queues, worker services, templates, retries, and delivery tracking.

Start learning

Chat application system design

Design a real-time chat application covering persistent connections, message delivery, conversation storage, presence tracking, ordering, and offline synchronization.

Start learning

Payment system design

Design a reliable payment system covering payment authorization, idempotency, transaction processing, security, reconciliation, retries, and audit records.

Start learning

Video streaming platform design

Design a video streaming platform covering media uploads, transcoding, storage, content delivery networks, adaptive bitrate streaming, and playback scalability.

Start learning

Practice & revise

Interview questions

Practice interview questions with answers, key points, and practical examples.

Test your knowledge

Explore 120 questions for this topic, covering concepts, practical examples, and interview scenarios.

Browse 120 questions

Keep learning step by step

Work through the concepts, practice explaining them in your own words, and use interview questions to check your understanding.

Explore another learning path