Cognitive Scaffold

Preparing your thinking workspace

arrow_back_ios_new
MENTAL MODEL · M7193

Master-Slave Architecture

Master-Slave Architecture
DecideHigh supportDecision Science
Included
account_tree

Updated 2026-08-10

Loading revision record…

Summary

An architecture in which one master node coordinates and decides while slave nodes execute, balancing unified command against distributed execution.

Definition

A system topology in which a master node handles coordination and decision making while one or more slave nodes carry out the work assigned to them. Its core proposition is that concentrating control in one place buys consistency and simplicity across a distributed system that needs coordination, at the price of a single point of failure and a potential bottleneck at the master. The qualifier is that the master role must be recoverable, so election or failover belongs in the design.

How to use

- Role split: designate one master node for scheduling and coordination of the whole system. - Obedient execution: let slave nodes carry out assigned work without negotiating the plan. - Failover design: prepare an election or switchover path for when the master fails.

Mechanism

Distributed work needs a shared decision about order and assignment, and letting every node negotiate that locally produces inconsistency and overhead. A single coordinating node makes those decisions once and broadcasts them, so execution stays consistent and simple, while the same concentration means the master's failure halts coordination and can split the system.

Practice

In progress 0/1

Practice this model in one real situation:

Check to track your progress (stored locally)
Learning progress0%

Cases

  • Database master-slave replication sends writes to the master and reads to the replicas.
  • Hypothetical: A traditional client-server system routes every request through one coordinating server.

Common pitfalls

  • Letting the master become a bottleneck or a single point of failure for the whole system.
  • Leaving slave nodes unable to take over, or ignoring the risk of a split brain during failover.
Sources

Source support: Explicit

References currently contain only Wikipedia links; primary sources still need review.

  • link
    zh.wikipedia.orghttps://zh.wikipedia.org/wiki/%E5%AE%A2%E6%88%B7%E7%AB%AF-%E6%9C%8D%E5%8A%A1%E5%99%A8%E6%9E%B6%E6%9E%84ZH · Explicit
    verified
account_treeGenealogyexpand_more

RELATED MODELS