How eduardosantana1313/gerenciamento-pedidos works
Main Components
a) External Interface Layer:
• Nginx Load Balancer (evident from docker-compose-lb.yaml)
• REST API endpoints (v1)
b) Application Core:
• Order Service (Spring Boot application)
• Use Cases Layer (CreateOrder, DetailOrders, ListOrders)
• Domain Layer (Order, Item, Status)
• Application Services Layer
c) Infrastructure:
• Amazon SQS Queue
• Database (with Flyway migrations)
• Scheduled Jobs (OrderJob)
Specific Components Detail
For each component, show:
• Order Controller: Entry point for REST operations
• Use Cases: Business logic implementation
• Domain Models: Core business entities
• Infrastructure Services: External integrations
Key Architectural Patterns to Highlight
• Clean Architecture (evident from the package structure)
• CQRS-like pattern (separate read/write operations)
• Event-driven architecture (SQS integration)
• Repository pattern (for data access)
Technical Elements
• Java 17 & Spring Boot
• Flyway Migrations
• Amazon SQS
• Nginx Load Balancer
• Test Containers
• Gatling Performance Tests
Create distinct sections for:
a) Runtime Flow:
• API requests through load balancer
• Message processing via SQS
• Database operations
b) Testing Infrastructure:
• Test Containers
• MVC Tests
• Performance Tests with Gatling