Design Questions Multi-master replication We can split integers by odd and even numbers. One server […]
[SysDes1][Chap. 6] Design a Key-value Store
Design Questions CAP Theorem CAP theorem states it is impossible for a distributed system to […]
[SysDes1][Chap. 5] Design Consistent Hashing
What is consistent hashing? The rehashing problemA usual way to partition hash values is to […]
[SysDes1] System Design Interview
Chapter 4. Design a Rate Limiter [Note] Chapter 5. Design Consistent Hashing [Note] Chapter 6. […]
[SysDes1][Chap. 4] Design a Rate Limiter
What is a rate limiter? A rate limiter is used to control the rate of […]
[C++][Chap. 9] Miscellany
[content] Item 53: Pay attention to compiler warnings Example: warning: D::f() hides virtual B::f(). D::f […]
[C++][Chap. 8] Customizing new and delete
[content] Item 49: Understand the behavior of the new-handler DO: When operator new is unable […]
[C++][Chap. 7] Templates and Generic Programming
[content] Item 41: Understand implicit interfaces and compile time polymorphism Both class and templates support […]
[C++][Chap. 6] Inheritance and Object-Oriented Design
[content] Item32: Make sure public inheritance models “is-a” DO: Public inheritance means “is-a” relationship. Everything […]
[C++][Chap. 5] Implementations
[content] Item 26: Postpone variable definition as long as possible DO: Declare, define and initialize […]