Made with ScholarlyTurn your own files into documents like this
Shared by Deekshitha
This study guide covers core system design principles including architecture evolution, network protocols, scaling strategies, and database foundations (pp. 1-9). The essential goal is to understand how to design scalable, reliable, and available distributed systems by selecting appropriate architectural patterns and infrastructure components (p. 1).
Fundamental Metrics — System design rests on four key pillars: Availability (percentage of operational time, e.g., "Five Nines" = 99.999%), Reliability (probability of functioning without failure for a specified time), Scalability (capacity to handle load increases by adding resources), and Fault Tolerance (the system's ability to maintain operations when components fail) (p. 1).
Application Architecture — Modern systems have shifted from Monolithic architectures, where all components like UI, business logic, and database access are bundled together, to Microservices. In microservices, the application is broken into independent services that communicate over a network, enabling independent team workflows and targeted scaling (p. 1).
CAP Theorem — In any distributed system, you can only guarantee two out of three properties: Consistency (every read receives the most recent write), Availability (every request receives a response), and Partition Tolerance (the system operates despite network failures). Because network partitions are inevitable in the real world, architects must choose between CP (Consistency + Partition Tolerance) or AP (Availability + Partition Tolerance) (p. 6).
DNS Resolution Process (p. 2): When a user types a human-readable name, the system translates it to an IP address. The lookup chain follows this order: Browser Cache → OS Cache → Resolver (ISP) → Root Server → TLD Server → Authoritative Name Server.
Scaling Strategies (p. 4): Systems can use Vertical Scaling (adding more power like CPU/RAM to an existing machine, which is limited by hardware and creates a single point of failure) or Horizontal Scaling (adding more machines to the network, which offers virtually unlimited scale but introduces complexities in data consistency and network latency).
Caching Write Strategies (p. 5): When writing data, developers choose between Write-Through (writing to cache and database simultaneously) or Write-Back (writing to cache only, then updating the database asynchronously, which offers higher performance but higher risk of data loss).
Load Balancing — The process of distributing incoming network traffic across a group of backend servers to prevent any single server from becoming overwhelmed (p. 4). Common algorithms include Round Robin, Least Connections, and IP Hash (p. 4).
Consistent Hashing — A technique for distributing keys across a cluster of servers such that only a small fraction of keys need re-mapping when a server is added or removed, which is vital for scaling distributed caches and databases (p. 4).
Idempotency — The property where making the same request multiple times has the same effect as making it once, often relevant in RESTful API design for methods like PUT or DELETE (p. 3).
• Networking protocols (DNS, HTTP) serve as the foundation for how services communicate in distributed architectures (p. 2).
• Horizontal scaling necessitates advanced data management techniques like sharding and consistent hashing to maintain performance across multiple nodes (p. 4, p. 7).
• The CAP theorem acts as a decision-making framework, dictating whether to prioritize consistency or availability when designing databases and choosing between SQL and NoSQL (p. 6).
Be able to distinguish between TCP (guaranteed delivery, slower, used for email/web) and UDP (fire-and-forget, faster, used for streaming/gaming) as detailed on page 2. Know how to compare REST, GraphQL, and gRPC based on their architectural paradigms (p. 3). Understand the difference between Normalization (saving space, requiring more joins) and Denormalization (increasing read performance, reducing joins) as discussed in the context of database performance (p. 7).
Make from this