技术组件
System Design · 16 notes
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.