Skip to main content
InterviewHubPRO
Section Overview
Q26

Question 26 of 50

Part 3: Advanced Internals, Scale & Production Architecture (Senior / Lead)

52%
RabbitMQ & AMQP (50 Qs)•Part 3: Advanced Internals, Scale & Production Architecture (Senior / Lead)

Quorum Queue Raft Internals and Handling Network Partitions (Netsplits).

senior LevelSystem DesignRabbitMQData Structures

In Simple Words: When a network partition splits a cluster into two isolated subnets (e.g., Node 1 & 2 vs Node 3):

  • Quorum Queues (Raft Consensus):
    • The side with the majority ($> 50%$, i.e., Nodes 1 & 2) continues electing leaders and processing writes.
    • The minority side (Node 3) stops accepting writes, preventing split-brain data divergence.
  • Cluster Partition Handling Modes (cluster_partition_handling):
    • pause_minority: The nodes on the minority side pause their Erlang VM and disconnect clients until the network heals.
    • autoheal: When the partition heals, the cluster automatically determines which side had more clients/activity and restarts the other side.