How sloweyyy/cloud-native-ecommerce-platform works
Core Components
• Frontend Client: Represent the Angular-based web client that provides the user interface. Include details like its use of Material UI/Tailwind CSS and its connection to the Identity Server for authentication.
• API Gateway: Clearly show the Ocelot API Gateway, which serves as the single entry point to the microservices. Note that it handles routing, aggregation, and cross-cutting concerns such as JWT authentication and rate limiting.
• API Layer: REST endpoints/controllers.
• Application Layer: Business logic (commands, queries, handlers, and behaviors implementing CQRS).
• Core/Domain Layer: Business rules, entities, domain models.
• Infrastructure Layer: Data persistence, repository implementations, external integrations (e.g., Redis, MongoDB, PostgreSQL, SQL Server).
• Shared Components:
• Event Bus/Message Broker: Illustrate RabbitMQ that facilitates asynchronous, event-driven communication between services.
• Shared Infrastructure: Include common components such as the centralized logging (Serilog/ Common.Logging) and event bus messages located under the Infrastructure folders.
• Databases: Map out the databases linked to each service:
• Catalog – MongoDB
• Basket – Redis
• Discount – PostgreSQL
• Ordering – SQL Server
• Deployment & Orchestration: Include Kubernetes as the orchestration platform, Helm charts for deployment, and Istio as the service mesh for observability and traffic management.
• Monitoring & Logging: Represent the monitoring tools such as Elasticsearch, Kibana, and any health-check mechanisms in place.
Relationships and Interactions
• The Client communicates with the system via the API Gateway.
• The API Gateway routes requests to the corresponding microservice.
• Within each microservice, illustrate the separation between the API, Application, Domain, and Infrastructure layers.
• Integration points:
• Database connections per service.
• External calls from the API Gateway to microservices.
• Cross-service communications using the message broker.
Architectural Patterns and Principles
• Microservices Architecture: Emphasize the isolation and autonomous deployment of services.
• Clean Architecture: For each microservice, visually separate the core, application, and infrastructure layers so that responsibilities are clear.
• Service Mesh: Note the role of Istio in managing network traffic and observability.
• API Gateway Pattern: Underline the role of Ocelot in centralizing routing and security.
Mention Relevant Technologies and Frameworks
• Backend: .NET Core 8.0, CQRS with MediatR, Entity Framework Core, and Dapper.
• Frontend: Angular, TypeScript, and Angular Material/Tailwind CSS.
• Databases: MongoDB, Redis, PostgreSQL, SQL Server.
• Messaging: RabbitMQ.
• Deployment Tools: Docker, Docker Compose, Kubernetes, Helm, and Istio.
• Monitoring: Elasticsearch and Kibana.