1. Designing a TCP Frameworkhistorical

    This note organizes TCP framework design through requirements, entity relationships, class diagrams, and sequence diagrams for connection setup and message handling.

  2. Designing a Cache Middlewarehistorical

    Cache middleware hides details such as reads, writes, concurrency, eviction, and distribution from applications. These notes organize shared caching capabilities around those responsibilities.

  3. Designing a TCP Connection Poolhistorical

    A TCP connection pool reuses connections to reduce repeated setup and teardown costs. These notes examine its design from that requirement.

  4. Designing an RPC Frameworkhistorical

    RPC lets programs invoke remote services through interfaces resembling local procedure calls. These notes examine framework components and flows through that need.

  5. Designing a Rate-Limiting Systemhistorical

    Rate limiting protects services by controlling access frequency rather than only simultaneous access counts. These notes examine implementations through caller-service relationships.

  6. Designing an Open APIhistorical

    Open APIs expose data and capabilities to external systems and therefore involve concerns such as authentication and authorization. These notes begin with the distinction from internal APIs.

  7. Designing an Asynchronous Systemhistorical

    An asynchronous call returns without waiting for its result. These notes examine invocation and result handling through the need for higher throughput.

  8. Designing an Isolation Systemhistorical

    Isolation separates systems or resources to limit failure propagation and impact. These notes illustrate the design through service machines and databases.

  9. Designing a Circuit-Breaker Systemhistorical

    A circuit breaker stops calls after errors reach a threshold and later attempts recovery. These notes examine system design through that flow.

  10. Designing a Degradation Systemhistorical

    Fallback provides a best-effort service when failures occur. These notes examine its business role and relationship to rate limiting and circuit breaking.

  11. Designing Timeout and Retryhistorical

    Timeouts prevent remote calls from holding resources indefinitely, while retries attempt recovery from temporary failures. These notes examine their roles and interaction.

  12. Designing a Feature-Switch Systemhistorical

    A switch can control feature state through a Boolean setting. These notes examine disabling secondary services and switching features between versions.

  13. Designing a Playbook Systemhistorical

    A contingency system moves a business into a predefined state, reducing the work and errors of changing switches individually. These notes examine execution approaches.

  14. Designing an Error Systemhistorical

    An error system distinguishes critical and ordinary problems before deciding whether to stop or continue. These notes cover codes, context, propagation, and related handling.

  15. Designing Object Poolinghistorical

    Pooling creates and stores objects in advance, checks them out when needed, and returns them after use to reduce creation and destruction costs.

  16. Designing a Cache Systemhistorical

    Designing a Cache System: The speed difference between CPU and disk is huge. Based on the principle of locality, frequently used data is generally loaded into memory to improve access speed.