How does the multi-agent system determine the scheduling mode?
Two common patterns are introduced.
Multiple agents will amplify system complexity.
Two common patterns: orchestrator-worker and choreography.
The orchestrator-worker pattern uses a central orchestrator to distribute tasks, control processes, and collect results.
The advantage is that the control surface is clear, and if there is a problem, you can check the orchestrator logs.
In the choreography mode, each agent is more independent and collaborates through the message bus.
It is more flexible and requires more event design, state management and failure handling.
Multiple agents are much more than just a few more workers.
The really difficult thing is to decide who has control, where to put the status, how to recover in case of failure, and where to check the logs.