How furkannzmnn/credit-service works
Main Components
a) Core Components:
• Domain Layer (Hexagon Center)
• Credit Domain
• Installment Domain
• Use Cases
• Domain Ports
b) Infrastructure Layer (Hexagon Outside)
• REST Controllers
• JPA Adapters
• Redis Adapter
• Scheduler
c) External Systems:
• PostgreSQL Database
• Redis Cache
• API Clients
Detailed Component Breakdown
Domain Core (Inner Hexagon):
• Credit Domain
• * Credit Aggregate
• * Credit Use Cases
• * Credit Status
• Installment Domain
• * Installment Aggregate
• * Installment Use Cases
• * Installment Status
Ports (Middle Layer):
• CreditPort
• InstallmentPort
• CachePort
Adapters (Outer Layer):
Input Adapters:
• REST Controllers
• * CreateCreditRestController
• * FilterCreditController
• * ListCreditRestController
• * InstallmentPayRestController
• Scheduler
• * OverdueFeeScheduler
Output Adapters:
• CreditJpaAdapter
• InstallmentJpaAdapter
• RedisAdapter
Key Relationships to Highlight
• Incoming HTTP requests from clients to REST Controllers
• Flow from controllers through use cases to domain logic
• Database interactions through JPA adapters
• Demonstrate cache interactions through Redis adapter
• Scheduled tasks interaction with the domain
Additional Elements
Supporting components:
• Configuration Management
• Exception Handling
• Message Source (i18n)
• Test Components
Implementation Details
Use these specific visual elements:
• Hexagons for architectural layers
• Cloud symbol for external services