Skip to content

Commit

Permalink
Add minor spelling fixes
Browse files Browse the repository at this point in the history
Co-authored-by: Laurens Weijs <[email protected]>
Signed-off-by: GuusjeJuijn <[email protected]>
  • Loading branch information
GuusjeJuijn and laurensWe committed Jun 6, 2024
1 parent 2119c98 commit 5b3ad0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/architecture/architecture.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ The backend consists of three components, showed in the component diagram at the
2. The business logic, which is the core logic of the AMT.
3. A system state, which provides the state of the AMT.

When receiving an API call, the API application forwards the instruction to the business logic. The business logic, in turn, updates the system state and submits the task to the Redis message queue. The message queue stores the task messages until a Celery worker is ready to process a specific task. When a Celery worker is available, it uses the task library to execute the task. After the task is completed by the worker, the result is sent back to the business logic via the message queue. The business logic now sends an update to the system state and writes the result to the database. Finally, the business logic writes a System Card to an external repository.
When receiving an API call, the application forwards the instruction to the business logic. The business logic, in turn, updates the system state and submits the task to the Redis message queue. The message queue stores the task messages until a Celery worker is ready to process a specific task. When a Celery worker is available, it uses the task library to execute the task. After the task is completed by the worker, the result is sent back to the business logic via the message queue. The business logic now sends an update to the system state and writes the result to the database. Finally, the business logic writes a System Card to an external repository.

Meanwhile, the API application sends regular heartbeats to the system state to check for updates. The system state receives updates from the business logic and checks for updates by reading from the database. When a state is updated (for example, a task is "done" or "failed with error X"), the business logic returns this to the API application. Using a websocket, the API application sends live updates back to the front end, to make sure the planning board stays up to date.

Expand Down

0 comments on commit 5b3ad0f

Please sign in to comment.