Junior — Middle
What is the purpose of the Master-Slave architectural model and in what cases is it used?
sobes.tech AI
Answer from AI
The Master-Slave architectural model involves a single main node (Master) that manages one or more subordinate nodes (Slaves). The Master assigns tasks, monitors execution, and collects results, while Slaves perform specific operations under the Master's direction.
This model is used in systems where centralized coordination and control are important, for example:
- Database replication (Master accepts writes, Slaves read data)
- Distributed computing, where the Master distributes tasks among Slaves
- Management of peripheral devices
The disadvantage is dependence on the Master: if it fails, the system may stop functioning correctly.