5.4. Kitchen Service business logic
The first example is Kitchen Service, which enables a restaurant to manage their orders. The two main aggregates in this service are the Restaurant and Ticket aggregates. The Restaurant aggregate knows the restaurant’s menu and opening hours and can validate orders. A Ticket represents an order that a restaurant must prepare for pickup by a courier. Figure 5.11 shows these aggregates and other key parts of the service’s business logic, as well as the service’s adapters.
Figure 5.11. The design of Kitchen Service
In addition to the aggregates, the other main parts of Kitchen Service’s business logic are KitchenService ...