diff --git a/README.md b/README.md index deb47b2..be621fd 100644 --- a/README.md +++ b/README.md @@ -54,8 +54,12 @@ sequenceDiagram q->>w3: Assign Action3 to Worker 3 w3->>q: Action3 Completed q->>c: Notify Controller: Action3 Done - + c->>q: Add new task: Action4 + q->>w1: Assign Action3 to Worker 1 + w1->>q: Action3 Completed + q->>c: Notify Controller: Action3 Done ``` +The diagram shows the interactions between different participants in a task processing system. The API receives a request from a user and sends a response that the task has been added to the queue by the controller. Then, the controller adds a new task, labeled Action1, to the queue. The queue assigns this task to Worker 1, who, after completing it, informs the queue that it's done. The queue then notifies the controller that Action1 is complete. The process repeats for the next tasks, Action2 and Action3, which are assigned to Worker 2 and Worker 3, respectively. Each of these tasks is completed and reported as finished to the controller by the respective workers. Finally, Action4 is added to the queue, assigned again to Worker 1, who completes the task and reports its completion. The queue again informs the controller that the task is done. ## Installation Linux: