How nomoreft/e-commerce-app works
Main Components
a. Core Services Layer:
• Customer Service
• Product Service
• Order Service
• Payment Service
• Notification Service
b. Infrastructure Services:
• Config Server (Spring Cloud Config)
• Discovery Service (Eureka)
• API Gateway
c. Message Broker:
• Kafka (evident from Kafka configurations in notification and payment services)
d. Databases:
• Individual databases for each service (following microservices pattern)
Component Relationships
a. Client Layer:
• External clients connect through the API Gateway
• Gateway handles security (noted by SecurityConfig in gateway service)
b. Service Communication:
• Synchronous communications via REST (evident from *Client.java files)
• Asynchronous communications via Kafka (particularly for notifications)
• Service discovery through Eureka
c. Data Flow Patterns:
• Order → Payment → Notification flow
• Product purchase flow
• Customer information flow
Specific Implementation Details
Use these visual elements:
• Blue: Core business services
• Green: Infrastructure services
• Yellow: Message broker
• Gray: Databases
• Purple: External clients/API Gateway
b. Connection Types:
Additional Elements
Components:
• Configuration management flow from Config Server
• Service registration/discovery with Eureka
• Kafka topics for order and payment notifications
• Security boundary at Gateway level
Specific Notations
Details:
• Service ports and names
• Main API endpoints
• Database types (if specified in configurations)
• Kafka topics: order-confirmation, payment-confirmation
Technical Stack Indicators
Technology usage:
• Spring Boot/Cloud
• Kafka
• Eureka
• Spring Cloud Gateway
• Spring Cloud Config