InterviewDB Question

Leader-Follower System: Implement a Primary/Replica Coordination Module

Question Details

Round 1 - Coding Problem Design a LeaderFollower system where one node acts as the leader and all others are followers. The leader accepts writes; followers replicate state and can serve reads. Example Follow-ups How do you handle a write that arrives while a leader election is in progress? What consistency guarantees does a follower read provide? How would you support read-your-writes? How do you detect a leader failure — heartbeat timeout, explicit signal, or quorum-based? How does your design…

Full Details

🔒

Unlock all Discord questions

Full insider details, leaked discussions, and candidate experiences.

Get full access — $100 a year, unlimited access

About This Question

This is a reported interview question from a discord interview during the onsite round.

It covers the following topics: Coding, Onsite .