Get slots
The Display
service is also not very complicated; it simply returns the current set of slots from its own persistence (DynamoDB). Because it keeps its own projection of slots the data may be eventually consistent, but that won't be a real issue in the type of circumstance we have here.
code/Reservation/Display/serverless.yml
The use case is so basic we can fully conduct everything we need in the application-layer use case with the help of our injected Repository.
code/Reservation/Display/src/application/usecases/GetSlotsUseCase.ts
Last updated