Junior — Middle
What is the purpose of the Master-Slave architectural pattern and what are its advantages?
sobes.tech AI
Answer from AI
The Master-Slave architectural pattern is used for distributing tasks between a main (Master) and subordinate (Slave) components. The Master manages task distribution, while Slaves perform the tasks.
Advantages:
- Increased performance through parallel processing.
- Simplified system scaling.
- Improved fault tolerance: if one Slave fails, others continue to operate.
Example: in a database, the Master accepts records, while Slaves handle data reading and replication.