notexOPENOverview
Notex/Systems/Multi-master replication
07.04LESSON 04 OF 9 · 1 MIN READ

Multi-master replication

Always free to read
SECTION VIDEOMulti-master replication

Video coming soon. Start with the reading below.

COMING SOON

As shown in Figure 7-2, the first approach is multi-master replication.

Design a unique ID generator in distributed systems — original diagram 92

This approach uses the databases’ auto_increment feature. Instead of increasing the next ID by 1, we increase it by k, where k is the number of database servers in use. As illustrated in Figure 7-2, next ID to be generated is equal to the previous ID in the same server plus 2. This solves some scalability issues because IDs can scale with the number of database servers. However, this strategy has some major drawbacks:

  • Hard to scale with multiple data centers
  • IDs do not go up with time across multiple servers.
  • It does not scale well when a server is added or removed.
Progress is saved on this device.
KEEP EXPLORING

One note leads to another.

Back to the library →
⌕
Search across the entire library ⌘ K