How algaworks/ignicao-microsservicos works
This repository presents AlgaDelivery through successive microservice-learning chapters. The principal workflow shown is preparing a delivery from validated request data, estimating delivery details and payout, applying domain rules, and persisting the result. The tree also documents delivery status/checkpoint handling and courier registration and assignment. The sampled service excerpt supports the preparation-to-domain and repository relationships; controller wiring and most courier, event, gateway, and registry internals were not sampled, so those connections are omitted or marked unverified.
Main entry points: DeliveryPreparationService.java Delivery preparation · CourierDeliveryService.java Delivery assignment · DeliveryController.java Delivery endpoints · DeliveryRepository.java Delivery repository
Components 19
Delivery API
- Delivery endpoints
06.01-implementando-endpoint-para-cadastro-de-uma-delivery/AlgaDelivery/Microservices/Delivery-Tracking/src/main/java/com/algaworks/algadelivery/delivery/tracking/api/controller/DeliveryController.java - Delivery inputs
06.03-domain-services/AlgaDelivery/Microservices/Delivery-Tracking/src/main/java/com/algaworks/algadelivery/delivery/tracking/api/model/DeliveryInput.java
Delivery Domain
- Delivery preparation
07.01-implementando-domain-service-para-integracao/AlgaDelivery/Microservices/Delivery-Tracking/src/main/java/com/algaworks/algadelivery/delivery/tracking/domain/service/DeliveryPreparationService.java - Delivery lifecycle
06.03-domain-services/AlgaDelivery/Microservices/Delivery-Tracking/src/main/java/com/algaworks/algadelivery/delivery/tracking/domain/model/Delivery.java - Contact points
06.03-domain-services/AlgaDelivery/Microservices/Delivery-Tracking/src/main/java/com/algaworks/algadelivery/delivery/tracking/domain/model/ContactPoint.java - Delivery repository
06.03-domain-services/AlgaDelivery/Microservices/Delivery-Tracking/src/main/java/com/algaworks/algadelivery/delivery/tracking/domain/repository/DeliveryRepository.java - Time estimation
- Courier payout
- Delivery checkpoints
06.06-implementando-fluxo-de-negocio-para-delivery/AlgaDelivery/Microservices/Delivery-Tracking/src/main/java/com/algaworks/algadelivery/delivery/tracking/domain/service/DeliveryCheckpointService.java
Courier Management
- Courier registration
06.07-implementando-endpoints-para-cadastro-de-courier/AlgaDelivery/Microservices/Courier-Management/src/main/java/com/algaworks/algadelivery/courier/management/domain/service/CourierRegistrationService.java - Delivery assignment
08.08-implementando-consumer/AlgaDelivery/Microservices/Courier-Management/src/main/java/com/algaworks/algadelivery/courier/management/domain/service/CourierDeliveryService.java - Courier lifecycle
04.14-adicionando-comportamento-courier/AlgaDelivery/Microservices/Courier-Management/src/main/java/com/algaworks/algadelivery/courier/management/domain/model/Courier.java - Assigned delivery
04.14-adicionando-comportamento-courier/AlgaDelivery/Microservices/Courier-Management/src/main/java/com/algaworks/algadelivery/courier/management/domain/model/AssignedDelivery.java - Courier repository
06.03-domain-services/AlgaDelivery/Microservices/Courier-Management/src/main/java/com/algaworks/algadelivery/courier/management/domain/repository/CourierRepository.java
Service Integration
- Event broker
- Service registry
- API gateway
Other components
- Delivery client
- Delivery database
Connections 18
- Delivery client → Delivery endpoints: submits request
- Delivery endpoints → Delivery preparation: invokes preparation
- Delivery preparation → Delivery inputs: reads input
07.01-implementando-domain-service-para-integracao/AlgaDelivery/Microservices/Delivery-Tracking/src/main/java/com/algaworks/algadelivery/delivery/tracking/domain/service/DeliveryPreparationService.java - Delivery preparation → Delivery lifecycle: prepares delivery
07.01-implementando-domain-service-para-integracao/AlgaDelivery/Microservices/Delivery-Tracking/src/main/java/com/algaworks/algadelivery/delivery/tracking/domain/service/DeliveryPreparationService.java - Delivery preparation → Contact points: builds contacts
07.01-implementando-domain-service-para-integracao/AlgaDelivery/Microservices/Delivery-Tracking/src/main/java/com/algaworks/algadelivery/delivery/tracking/domain/service/DeliveryPreparationService.java - Delivery preparation → Time estimation: requests estimate
07.01-implementando-domain-service-para-integracao/AlgaDelivery/Microservices/Delivery-Tracking/src/main/java/com/algaworks/algadelivery/delivery/tracking/domain/service/DeliveryPreparationService.java - Delivery preparation → Courier payout: calculates payout
07.01-implementando-domain-service-para-integracao/AlgaDelivery/Microservices/Delivery-Tracking/src/main/java/com/algaworks/algadelivery/delivery/tracking/domain/service/DeliveryPreparationService.java - Delivery preparation → Delivery repository: saves delivery
07.01-implementando-domain-service-para-integracao/AlgaDelivery/Microservices/Delivery-Tracking/src/main/java/com/algaworks/algadelivery/delivery/tracking/domain/service/DeliveryPreparationService.java - Delivery repository → Delivery database: persists records
- Delivery checkpoints → Delivery lifecycle: updates status
- Courier registration → Courier repository: stores courier
- Delivery assignment → Courier lifecycle: assigns delivery
- Delivery assignment → Assigned delivery: records assignment
- Courier lifecycle → Courier repository: uses repository
- Event broker → Delivery assignment: dispatches events
- Delivery client → API gateway: routes request
- API gateway → Delivery endpoints: forwards request
- Service registry → API gateway: resolves services