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 learningIntroduction 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 learningFunctional and non-functional requirements
Distinguish functional requirements from non-functional requirements and understand how features, performance, availability, security, and scalability shape system architecture.
Start learningRequirement gathering and clarification
Learn to gather and clarify system requirements by identifying users, core workflows, constraints, assumptions, expected traffic, and business priorities.
Start learningHigh-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 learningMonolithic architecture
Understand monolithic application architecture, where application functionality is deployed as a single unit, and explore its structure, benefits, and limitations.
Start learningMicroservices architecture
Explore microservices architecture, where independently deployable services implement separate business capabilities and communicate through defined interfaces.
Start learningMonolith vs microservices
Compare monolithic and microservices architectures in terms of deployment, scalability, development complexity, data management, reliability, and operational overhead.
Start learningService decomposition strategies
Learn how to divide applications into services using business capabilities, domain boundaries, data ownership, and independent deployment requirements.
Start learningDomain-Driven Design (DDD)
Understand Domain-Driven Design and how business domains, models, and domain boundaries guide the architecture of complex software systems.
Start learningBounded contexts and ubiquitous language
Define bounded contexts and ubiquitous language to establish clear domain boundaries and consistent business terminology across development teams.
Start learningDomain model and aggregates
Design domain models using entities, value objects, aggregates, and aggregate roots to maintain business rules and consistency within domain boundaries.
Start learningScalability fundamentals
Understand system scalability and how architecture, infrastructure, databases, and application components respond to increasing users and workloads.
Start learningVertical and horizontal scaling
Compare vertical scaling and horizontal scaling and understand their effects on resource capacity, availability, cost, and application architecture.
Start learningAvailability and reliability
Design systems for availability and reliability using redundancy, failover, health monitoring, recovery mechanisms, and service-level objectives.
Start learningFault tolerance and resilience
Build fault-tolerant systems that continue operating during component failures using redundancy, isolation, recovery, and graceful degradation.
Start learningPerformance and latency
Understand application performance and latency, identify sources of response delays, and explore techniques for reducing end-to-end request time.
Start learningThroughput and concurrency
Measure throughput and concurrency and understand how systems process simultaneous requests, manage shared resources, and handle increasing workloads.
Start learningLoad balancing
Distribute incoming requests across multiple application instances using load-balancing algorithms, health checks, and traffic distribution strategies.
Start learningReverse proxies
Understand reverse proxies as intermediaries between clients and backend services and explore routing, TLS termination, caching, and request forwarding.
Start learningAPI gateway pattern
Implement the API Gateway pattern to provide a unified entry point for microservices, handling routing, authentication, rate limiting, and request aggregation.
Start learningService discovery
Understand service discovery mechanisms that allow distributed services to locate one another dynamically through registries, DNS, or orchestration platforms.
Start learningInter-service communication
Explore communication patterns between microservices, including synchronous calls, asynchronous messaging, service contracts, and failure handling.
Start learningSynchronous communication
Understand synchronous service communication using request-response interactions and evaluate its effects on latency, availability, and service dependencies.
Start learningAsynchronous communication
Use asynchronous communication to decouple services through messages and events, improving scalability and reducing direct runtime dependencies.
Start learningREST API communication
Design REST-based communication between services using HTTP methods, resource-oriented endpoints, JSON payloads, and consistent API contracts.
Start learninggRPC fundamentals
Understand gRPC communication using Protocol Buffers, service definitions, generated clients, HTTP/2, and unary and streaming RPC methods.
Start learningGraphQL fundamentals
Explore GraphQL schemas, queries, mutations, resolvers, and type systems for flexible API communication and efficient client-specific data retrieval.
Start learningMessage queues and event streaming
Understand message queues and event streaming platforms and how they enable asynchronous communication, buffering, event delivery, and service decoupling.
Start learningEvent-driven architecture
Design event-driven systems in which services publish and consume events to communicate asynchronously and react to changes in business state.
Start learningApache Kafka fundamentals
Learn Apache Kafka architecture, including brokers, topics, partitions, producers, consumers, consumer groups, offsets, and message retention.
Start learningRabbitMQ fundamentals
Understand RabbitMQ messaging concepts such as exchanges, queues, bindings, routing keys, acknowledgements, and reliable message delivery.
Start learningDatabase design for distributed systems
Design data storage for distributed applications by considering service ownership, consistency, availability, replication, partitioning, and independent data management.
Start learningDatabase 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 learningShared database pattern
Understand the shared database pattern, where multiple services access a common data store, and evaluate its benefits, coupling, and maintenance challenges.
Start learningSQL 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 learningDatabase replication
Understand database replication techniques for maintaining multiple copies of data and explore primary-replica architectures, synchronization, and failover.
Start learningDatabase sharding
Scale database workloads through sharding by distributing records across multiple database nodes using shard keys and routing strategies.
Start learningDatabase partitioning
Organize large datasets into logical partitions and understand range, list, and hash partitioning for performance and data management.
Start learningDistributed transactions
Understand transactions spanning multiple services or databases and explore the challenges of atomicity, consistency, coordination, and failure recovery.
Start learningTwo-phase commit (2PC)
Learn the two-phase commit protocol, including prepare and commit phases, coordinator responsibilities, participant behavior, and distributed transaction limitations.
Start learningSaga pattern
Implement the Saga pattern to coordinate distributed business transactions through local transactions and compensating actions across multiple services.
Start learningTransactional 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 learningCQRS pattern
Understand Command Query Responsibility Segregation and separate write operations from read operations to support different data models and workload requirements.
Start learningEvent sourcing
Design event-sourced systems that persist state changes as an ordered sequence of events and reconstruct current application state through event replay.
Start learningCaching fundamentals
Understand caching concepts, cache levels, expiration, eviction, and consistency, and learn how caching reduces latency and backend workload.
Start learningCache-aside pattern
Implement the cache-aside pattern by checking the cache before retrieving data from the database and updating cached entries when required.
Start learningWrite-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 learningDistributed caching with Redis
Use Redis as a distributed cache across multiple application instances and explore data structures, expiration, serialization, and cache access patterns.
Start learningCache invalidation strategies
Explore cache invalidation techniques such as time-to-live expiration, explicit deletion, versioning, and event-based invalidation to prevent stale data.
Start learningContent delivery networks (CDN)
Understand content delivery networks and how geographically distributed edge servers cache and deliver static and dynamic content closer to users.
Start learningCircuit 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 learningRetry and timeout patterns
Design reliable service communication using timeouts, retry policies, exponential backoff, and jitter while avoiding retry storms and cascading failures.
Start learningBulkhead 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 learningRate 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 learningIdempotency and duplicate request handling
Design idempotent operations and use idempotency keys to prevent duplicate processing when clients retry requests or network failures occur.
Start learningHealth checks and service resilience
Implement readiness, liveness, and dependency health checks to detect unhealthy services and support resilient traffic routing and recovery.
Start learningDistributed locking
Coordinate access to shared resources across distributed application instances using distributed locks, leases, expiration, and failure recovery strategies.
Start learningDistributed consensus fundamentals
Understand distributed consensus and how nodes agree on shared state or decisions despite network failures, node failures, and communication delays.
Start learningCAP theorem
Understand the CAP theorem and its implications for consistency, availability, and partition tolerance when designing distributed data systems.
Start learningConsistency 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 learningEventual consistency
Understand eventual consistency and how replicated data converges over time, including handling temporary inconsistencies in distributed applications.
Start learningStrong consistency
Explore strong consistency guarantees and understand how coordinated reads and writes ensure that clients observe the latest committed data.
Start learningDistributed systems fundamentals
Learn distributed systems concepts including nodes, network communication, replication, coordination, partial failures, fault tolerance, and consistency.
Start learningService orchestration and choreography
Compare orchestration and choreography approaches for coordinating microservice workflows and understand centralized coordination versus event-driven collaboration.
Start learningMicroservices security
Secure microservices architectures through identity management, service authorization, encrypted communication, secrets protection, and network security controls.
Start learningAuthentication and authorization
Understand authentication and authorization in distributed applications and implement identity verification and access control across service boundaries.
Start learningOAuth 2.0 and JWT
OAuth 2.0 and JWT: Learn its key concepts, practical implementation, architecture, and interview considerations.
Start learningService-to-service authentication
Secure communication between backend services using service identities, client credentials, mutual TLS, and managed identity mechanisms.
Start learningSecrets management
Manage application credentials, API keys, certificates, and connection strings securely using centralized secret stores and controlled access policies.
Start learningObservability fundamentals
Understand observability through metrics, logs, and traces and learn how these signals help diagnose failures and understand distributed application behavior.
Start learningCentralized logging
Collect and aggregate logs from multiple services into centralized platforms and use structured logging, correlation identifiers, and searchable events for troubleshooting.
Start learningDistributed tracing
Trace requests across multiple microservices using trace and span identifiers to identify latency, dependencies, and failures in distributed workflows.
Start learningMetrics and monitoring
Monitor system health and application performance using metrics such as latency, throughput, error rates, resource utilization, and service availability.
Start learningOpenTelemetry fundamentals
Explore OpenTelemetry APIs, SDKs, instrumentation, collectors, and exporters for generating and exporting traces, metrics, and logs.
Start learningPrometheus and Grafana
Collect and query application metrics with Prometheus and build monitoring dashboards and visualizations using Grafana.
Start learningMicroservices testing strategies
Explore testing approaches for distributed applications, including unit, integration, contract, component, and end-to-end testing.
Start learningContract testing
Verify service integration contracts using consumer-driven contract testing and ensure that independently developed services remain compatible.
Start learningIntegration 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 learningContainerization with Docker
Package microservices into Docker containers and understand images, containers, Dockerfiles, networking, volumes, and container orchestration requirements.
Start learningKubernetes fundamentals
Understand Kubernetes architecture and core resources such as clusters, nodes, pods, deployments, services, ConfigMaps, and Secrets.
Start learningMicroservices deployment strategies
Explore deployment approaches for microservices, including rolling updates, independent service releases, environment promotion, and automated rollout management.
Start learningBlue-green and canary deployments
Implement blue-green and canary deployment strategies to release microservice changes gradually, validate behavior, and reduce production deployment risks.
Start learningCI/CD for microservices
Design CI/CD pipelines for independently buildable and deployable microservices, including automated testing, container image publishing, and release orchestration.
Start learningInfrastructure as Code
Manage infrastructure through version-controlled code using tools such as Terraform and declarative configuration for repeatable environment provisioning.
Start learningMicroservices performance optimization
Optimize microservice performance by analyzing service latency, network calls, database access, serialization, caching, and resource utilization.
Start learningDesigning scalable distributed applications
Design distributed applications that scale through independent services, asynchronous processing, partitioned data, caching, load balancing, and resilient communication.
Start learningReal-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 learningURL shortener system design
Design a scalable URL shortening service covering identifier generation, redirects, database schema, caching, analytics, and high-volume request handling.
Start learningE-commerce system design
Design an e-commerce platform covering product catalogs, inventory, shopping carts, orders, payments, search, and distributed transaction management.
Start learningNotification service design
Design a notification platform that delivers email, SMS, and push messages using queues, worker services, templates, retries, and delivery tracking.
Start learningChat application system design
Design a real-time chat application covering persistent connections, message delivery, conversation storage, presence tracking, ordering, and offline synchronization.
Start learningPayment system design
Design a reliable payment system covering payment authorization, idempotency, transaction processing, security, reconciliation, retries, and audit records.
Start learningVideo streaming platform design
Design a video streaming platform covering media uploads, transcoding, storage, content delivery networks, adaptive bitrate streaming, and playback scalability.
Start learningPractice & 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.
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