diff --git a/README.md b/README.md index 7eec696..093b31b 100644 --- a/README.md +++ b/README.md @@ -27,9 +27,24 @@ Repository with Kitchen production line resources - **Response Object**: ```json { - "received": ["ASD-12","ASD-22"], - "inPreparation": ["ASD-02","ASD-42"], - "ready": ["ASD-X3"] + "received": [ + { + "orderId": "b39c3d69-2e43-47df-8b86-0037975ae211", + "code": "ASD-12" + } + ], + "inPreparation":[ + { + "orderId": "b33c3d69-2e43-47df-8b86-0037975ae211", + "code": "ASD-12" + } + ], + "ready": [ + { + "orderId": "c39c3d69-2e43-47df-8b86-0037975ae211", + "code": "ASD-22" + } + ], } ``` @@ -43,7 +58,7 @@ Repository with Kitchen production line resources - Status changes cannot be rolled back. - If the order status is `Completed`, it should be removed from the orders list. - **Events**: - - An `OrderStatusUpdated` event should be triggered on every status change operation. + - An `OrderStatusChanged` event should be triggered on every status change operation. # Use Cases @@ -51,29 +66,32 @@ Repository with Kitchen production line resources - **Trigger**: Executed from the `OrderPaymentConfirmed` event. - **Actions**: - Adds the order to the `Received` queue. - - Publishes an `OrderStatusUpdated` event with the status value `Received`. + - Publishes an `OrderStatusChanged` event with the status value `Received`. ## PrepareOrderUseCase - **Trigger**: Executed when an order needs to be prepared. - **Actions**: - Removes the order from the `Received` queue. - Adds the order to the `InPreparation` queue. - - Publishes an `OrderStatusUpdated` event with the status value `InPreparation`. + - Publishes an `OrderStatusChanged` event with the status value `InPreparation`. ## FinishOrderPreparationUseCase - **Trigger**: Executed when an order preparation is finished. - **Actions**: - Removes the order from the `InPreparation` queue. - Adds the order to the `Ready` queue. - - Publishes an `OrderStatusUpdated` event with the status value `Ready`. + - Publishes an `OrderStatusChanged` event with the status value `Ready`. ## CompleteOrderUseCase - **Trigger**: Executed when an order is completed. - **Actions**: - Removes the order from the `Ready` queue. - Removes the order from the list. - - Publishes an `OrderStatusUpdated` event with the status value `Completed`. + - Publishes an `OrderStatusChanged` event with the status value `Completed`. ## This repo on the infrastructure -![Architecture Diagram](aws-infra-phase-4.png) \ No newline at end of file +![Architecture Diagram](doc/aws-infra-phase-4.png) + +### K8S +![Architecture Diagram](doc/k8s.png) \ No newline at end of file diff --git a/aws-infra-phase-4.png b/doc/aws-infra-phase-4.png similarity index 100% rename from aws-infra-phase-4.png rename to doc/aws-infra-phase-4.png diff --git a/doc/k8s.png b/doc/k8s.png new file mode 100644 index 0000000..4fec74b Binary files /dev/null and b/doc/k8s.png differ