Page 9
Partitioning, Bucketing, Sharding, Replication, Edge: The Clean Mental Model
A precise mental model for partitioning, bucketing, sharding, replication, and edge computing - when to use each and why they exist at different layers.
SP7 - Proxy - Learn Design Pattern From Simple Things
The boss wants the employees to focus on work and not get distracted by social media. So he decides to block some websites on the corporate network during working hours.
SQL vs. NoSQL: The 'Library vs. Warehouse' Mental Model
Why is MongoDB faster but Postgres safer? A mastery guide to Schema, ACID, and why JSONB might be the only NoSQL you need.
TCP vs. UDP: The 'Registered Mail' Mental Model
Why does video calling glitch but file downloads pause? A mastery guide to the 3-Way Handshake, Head-of-Line Blocking, and why UDP is winning (HTTP/3).
SP6 - Object Pool - Learn Design Pattern From Simple Things
Producing planes on a large scale is expensive, but fortunately the manufactured raw parts are always stored in the pool, thereby reducing duplication in the production process.
SP5 - Facade - Learn Design Pattern From Simple Things
There are many departments in the building and you feel confused! By opening the entrances from the facade according to purposes, you simply follow the pre-arranged flow.
SP4 - Mixer - Learn Design Pattern From Simple Things
You are a dog farm owner who manages the properties of all dog breeds. The number of crossbred dogs is increasing every day because of the emergence of new breeds!
BP10 - Mediator - Learn Design Pattern From Simple Things
In the discussion room without a teacher, you can speak or listen, but when you speak you need to make sure that everyone can hear. Therefore, a loudspeaker is a useful tool.
BP9 - File History - Learn Design Pattern From Simple Things
Undo and redo are common features in editing software. They look simple on the surface, but how do they work internally? How do you design structure and behavior for them?