System Design
32 notes
Some notes are currently available only in Chinese. English translations are shown when available.
- Designing a Feed Systemhistorical
A feed keeps presenting information as the screen scrolls. These notes start with that experience and compare pull, push, and hybrid fan-out approaches.
- Designing a Short URL Systemhistorical
Short URLs turn ordinary addresses into shorter ones for easier sharing. These notes examine generation and redirection through that requirement.
- Designing an E-Commerce Detail Pagehistorical
If the data volume is relatively small, a fully static design can be used: the static-generation system queries all product data from the database, renders it into HTML files with Thymeleaf + HTML templates, places the files in the Nginx directory, and serves them through Nginx.
- Designing a Leaderboard Systemhistorical
A ranking system starts with requirements and presentation, followed by ranking updates and queries. These notes examine implementation and maintenance using approaches such as sorted sets.
- Designing User Registration and Loginhistorical
After login, the system returns a credential used to identify the user in later requests. These notes continue with passwords, verification codes, and third-party login.
- Designing a Frequency-Control Systemhistorical
Rate-control logic scattered across business code affects reuse, extension, and maintenance. These notes examine extracting that logic into a shared service.
- 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.