Advanced System Design Fundamentals
Vote

0% completed

​

Consensus or Single-Leader

An online store runs on three app servers and one Postgres database. Every minute, a cleanup job cancels orders that have stayed unpaid for 30 minutes and returns their items to stock. Only one server should run the job, and the team must choose how to pick it. All numbers in this lesson are made-up examples.

  • Option A: Run a three-node etcd cluster, and let it choose the server. etcd is a small key-value store that uses consensus to keep its copies in agreement.
  • Option B: Keep one row in the existing Postgres database. The row names the chosen server and the time its turn ends.

.....

.....

.....

Like the course? Get enrolled and start learning!

Reading Progress

0%


Vote for new content