# virendratamrakar-dotnet/dot-net-microservices-with-azure-and-aks architecture

> Architecture diagram of the GitHub repository virendratamrakar-dotnet/dot-net-microservices-with-azure-and-aks, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-03). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/virendratamrakar-dotnet/dot-net-microservices-with-azure-and-aks
- Repository: https://github.com/virendratamrakar-dotnet/dot-net-microservices-with-azure-and-aks

## Overview

This repository is a course-style set of evolving e-commerce microservice examples, not one unified application snapshot. Its visible product areas include user authentication, product management, orders, resilience, caching, API gateway routing, messaging, and identity integrations. The clearest workflow evidence is from the Angular routes: users enter through authentication, then browse or manage products and, in later examples, access cart and order views. Source excerpts are sparse, so relationships beyond those route and import references are left unconnected rather than inferred.

Main entry points: [`06. Microservice Communication/12. Frontend with Orders/frontend/src/app/app.routes.ts`](https://github.com/virendratamrakar-dotnet/dot-net-microservices-with-azure-and-aks/blob/main/06.%20Microservice%20Communication/12.%20Frontend%20with%20Orders/frontend/src/app/app.routes.ts) (Client routes), [`01. Users Microservice/19. Angular Client App/src/app/components/login/login.component.ts`](https://github.com/virendratamrakar-dotnet/dot-net-microservices-with-azure-and-aks/blob/main/01.%20Users%20Microservice/19.%20Angular%20Client%20App/src/app/components/login/login.component.ts) (Login view), [`01. Users Microservice/19. Angular Client App/src/app/services/users.service.ts`](https://github.com/virendratamrakar-dotnet/dot-net-microservices-with-azure-and-aks/blob/main/01.%20Users%20Microservice/19.%20Angular%20Client%20App/src/app/services/users.service.ts) (Users client), [`01. Users Microservice/19. Angular Client App/src/app/models/authentication-response.ts`](https://github.com/virendratamrakar-dotnet/dot-net-microservices-with-azure-and-aks/blob/main/01.%20Users%20Microservice/19.%20Angular%20Client%20App/src/app/models/authentication-response.ts) (Auth response)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["Client applications"]
  node_client_routes["Client routes<br/>[app.routes.ts]"]
  node_login_view["Login view<br/>[login.component.ts]"]
  node_user_client["Users client<br/>[users.service.ts]"]
  node_auth_data["Auth response"]
  node_product_ui["Product UI<br/>[app.routes.ts]"]
  node_orders_ui["Cart and orders<br/>[app.routes.ts]"]
end

subgraph group_users["User service"]
  node_user_api["Authentication API<br/>[AuthController.cs]"]
  node_user_service["User service<br/>[UsersService.cs]"]
  node_user_model["User model<br/>[ApplicationUser.cs]"]
  node_user_repository["User repository<br/>[UsersRepository.cs]"]
  node_validation["Request validation"]
end

subgraph group_commerce["Commerce services"]
  node_product_service["Products service"]
  node_order_client["Orders client<br/>[cart.service.ts]"]
end

subgraph group_platform["Service capabilities"]
  node_fault_tolerance["Fault tolerance<br/>[app.routes.ts]"]
  node_caching[("Redis caching<br/>[app.routes.ts]")]
  node_gateway["API gateway<br/>[app.routes.ts]"]
  node_rabbitmq["RabbitMQ messaging<br/>[app.routes.ts]"]
  node_azure_bus["Azure Service Bus<br/>[app.routes.ts]"]
  node_identity["Entra B2C identity<br/>[app.routes.ts]"]
  node_postgres_dapper[("Postgres and Dapper<br/>[DapperDbContext.cs]")]
end

node_shopper(("Shopper"))

node_shopper -->|"opens"| node_client_routes
node_client_routes -->|"routes to"| node_login_view
node_login_view -->|"uses"| node_user_client
node_login_view -->|"uses response"| node_auth_data
node_client_routes -->|"routes to"| node_product_ui
node_client_routes -->|"routes to"| node_orders_ui

click node_client_routes "https://github.com/virendratamrakar-dotnet/dot-net-microservices-with-azure-and-aks/blob/main/06.%20Microservice%20Communication/12.%20Frontend%20with%20Orders/frontend/src/app/app.routes.ts"
click node_login_view "https://github.com/virendratamrakar-dotnet/dot-net-microservices-with-azure-and-aks/blob/main/01.%20Users%20Microservice/19.%20Angular%20Client%20App/src/app/components/login/login.component.ts"
click node_user_client "https://github.com/virendratamrakar-dotnet/dot-net-microservices-with-azure-and-aks/blob/main/01.%20Users%20Microservice/19.%20Angular%20Client%20App/src/app/services/users.service.ts"
click node_auth_data "https://github.com/virendratamrakar-dotnet/dot-net-microservices-with-azure-and-aks/blob/main/01.%20Users%20Microservice/19.%20Angular%20Client%20App/src/app/models/authentication-response.ts"
click node_product_ui "https://github.com/virendratamrakar-dotnet/dot-net-microservices-with-azure-and-aks/blob/main/02.%20Products%20Microservice/16.%20Products%20Angular%20UI/src/app/app.routes.ts"
click node_orders_ui "https://github.com/virendratamrakar-dotnet/dot-net-microservices-with-azure-and-aks/blob/main/06.%20Microservice%20Communication/12.%20Frontend%20with%20Orders/frontend/src/app/app.routes.ts"
click node_user_api "https://github.com/virendratamrakar-dotnet/dot-net-microservices-with-azure-and-aks/blob/main/01.%20Users%20Microservice/10.%20AutoMapper%20Assignment%20Solution/eCommerce.API/Controllers/AuthController.cs"
click node_user_service "https://github.com/virendratamrakar-dotnet/dot-net-microservices-with-azure-and-aks/blob/main/01.%20Users%20Microservice/10.%20AutoMapper%20Assignment%20Solution/eCommerce.Core/Services/UsersService.cs"
click node_user_model "https://github.com/virendratamrakar-dotnet/dot-net-microservices-with-azure-and-aks/blob/main/01.%20Users%20Microservice/10.%20AutoMapper%20Assignment%20Solution/eCommerce.Core/Entities/ApplicationUser.cs"
click node_user_repository "https://github.com/virendratamrakar-dotnet/dot-net-microservices-with-azure-and-aks/blob/main/01.%20Users%20Microservice/10.%20AutoMapper%20Assignment%20Solution/eCommerce.Infrastructure/Repositories/UsersRepository.cs"
click node_validation "https://github.com/virendratamrakar-dotnet/dot-net-microservices-with-azure-and-aks/blob/main/01.%20Users%20Microservice/15.%20FluentValidation/eCommerce.Core/Validators/LoginRequestValidator.cs"
click node_product_service "https://github.com/virendratamrakar-dotnet/dot-net-microservices-with-azure-and-aks/blob/main/02.%20Products%20Microservice/16.%20Products%20Angular%20UI/src/app/services/products.service.ts"
click node_order_client "https://github.com/virendratamrakar-dotnet/dot-net-microservices-with-azure-and-aks/blob/main/06.%20Microservice%20Communication/12.%20Frontend%20with%20Orders/frontend/src/app/services/cart.service.ts"
click node_fault_tolerance "https://github.com/virendratamrakar-dotnet/dot-net-microservices-with-azure-and-aks/blob/main/07.%20Fault%20Tolerance/01.%20WaitAndRetry/frontend/src/app/app.routes.ts"
click node_caching "https://github.com/virendratamrakar-dotnet/dot-net-microservices-with-azure-and-aks/blob/main/08.%20Caching/03.%20Reading%20from%20Cache/frontend/src/app/app.routes.ts"
click node_gateway "https://github.com/virendratamrakar-dotnet/dot-net-microservices-with-azure-and-aks/blob/main/09.%20API%20Gateway%20using%20Ocelot/05.%20Microservice%20Communication%20with%20API%20Gateway/frontend/src/app/app.routes.ts"
click node_rabbitmq "https://github.com/virendratamrakar-dotnet/dot-net-microservices-with-azure-and-aks/blob/main/10.%20RabbitMQ/04.%20Publisher%20Class/frontend/src/app/app.routes.ts"
click node_azure_bus "https://github.com/virendratamrakar-dotnet/dot-net-microservices-with-azure-and-aks/blob/main/16.%20Azure%20ServiceBus/02.%20Product%20Updation%20Topic%20Publisher%20-%20Part%201/frontend/src/app/app.routes.ts"
click node_identity "https://github.com/virendratamrakar-dotnet/dot-net-microservices-with-azure-and-aks/blob/main/15.%20Microsoft%20Entra%20ID%20-%20B2C%20Authentication/06.%20Graph%20API%20Configuration%20in%20Users%20Microservice/frontend/src/app/app.routes.ts"
click node_postgres_dapper "https://github.com/virendratamrakar-dotnet/dot-net-microservices-with-azure-and-aks/blob/main/01.%20Users%20Microservice/12.%20Intro%20to%20Dapper/eCommerce.Infrastructure/DbContext/DapperDbContext.cs"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_client_routes,node_login_view,node_user_client,node_auth_data,node_product_ui,node_orders_ui toneBlue
class node_user_api,node_user_service,node_user_model,node_user_repository,node_validation toneAmber
class node_product_service,node_order_client toneMint
class node_fault_tolerance,node_caching,node_gateway,node_rabbitmq,node_azure_bus,node_identity,node_postgres_dapper toneRose
class node_shopper toneIndigo
```

## Components

### Client applications

- [Client routes](https://github.com/virendratamrakar-dotnet/dot-net-microservices-with-azure-and-aks/blob/main/06.%20Microservice%20Communication/12.%20Frontend%20with%20Orders/frontend/src/app/app.routes.ts): `06. Microservice Communication/12. Frontend with Orders/frontend/src/app/app.routes.ts`
- [Login view](https://github.com/virendratamrakar-dotnet/dot-net-microservices-with-azure-and-aks/blob/main/01.%20Users%20Microservice/19.%20Angular%20Client%20App/src/app/components/login/login.component.ts): `01. Users Microservice/19. Angular Client App/src/app/components/login/login.component.ts`
- [Users client](https://github.com/virendratamrakar-dotnet/dot-net-microservices-with-azure-and-aks/blob/main/01.%20Users%20Microservice/19.%20Angular%20Client%20App/src/app/services/users.service.ts): `01. Users Microservice/19. Angular Client App/src/app/services/users.service.ts`
- [Auth response](https://github.com/virendratamrakar-dotnet/dot-net-microservices-with-azure-and-aks/blob/main/01.%20Users%20Microservice/19.%20Angular%20Client%20App/src/app/models/authentication-response.ts): `01. Users Microservice/19. Angular Client App/src/app/models/authentication-response.ts`
- [Product UI](https://github.com/virendratamrakar-dotnet/dot-net-microservices-with-azure-and-aks/blob/main/02.%20Products%20Microservice/16.%20Products%20Angular%20UI/src/app/app.routes.ts): `02. Products Microservice/16. Products Angular UI/src/app/app.routes.ts`
- [Cart and orders](https://github.com/virendratamrakar-dotnet/dot-net-microservices-with-azure-and-aks/blob/main/06.%20Microservice%20Communication/12.%20Frontend%20with%20Orders/frontend/src/app/app.routes.ts): `06. Microservice Communication/12. Frontend with Orders/frontend/src/app/app.routes.ts`

### User service

- [Authentication API](https://github.com/virendratamrakar-dotnet/dot-net-microservices-with-azure-and-aks/blob/main/01.%20Users%20Microservice/10.%20AutoMapper%20Assignment%20Solution/eCommerce.API/Controllers/AuthController.cs): `01. Users Microservice/10. AutoMapper Assignment Solution/eCommerce.API/Controllers/AuthController.cs`
- [User service](https://github.com/virendratamrakar-dotnet/dot-net-microservices-with-azure-and-aks/blob/main/01.%20Users%20Microservice/10.%20AutoMapper%20Assignment%20Solution/eCommerce.Core/Services/UsersService.cs): `01. Users Microservice/10. AutoMapper Assignment Solution/eCommerce.Core/Services/UsersService.cs`
- [User model](https://github.com/virendratamrakar-dotnet/dot-net-microservices-with-azure-and-aks/blob/main/01.%20Users%20Microservice/10.%20AutoMapper%20Assignment%20Solution/eCommerce.Core/Entities/ApplicationUser.cs): `01. Users Microservice/10. AutoMapper Assignment Solution/eCommerce.Core/Entities/ApplicationUser.cs`
- [User repository](https://github.com/virendratamrakar-dotnet/dot-net-microservices-with-azure-and-aks/blob/main/01.%20Users%20Microservice/10.%20AutoMapper%20Assignment%20Solution/eCommerce.Infrastructure/Repositories/UsersRepository.cs): `01. Users Microservice/10. AutoMapper Assignment Solution/eCommerce.Infrastructure/Repositories/UsersRepository.cs`
- [Request validation](https://github.com/virendratamrakar-dotnet/dot-net-microservices-with-azure-and-aks/blob/main/01.%20Users%20Microservice/15.%20FluentValidation/eCommerce.Core/Validators/LoginRequestValidator.cs): `01. Users Microservice/15. FluentValidation/eCommerce.Core/Validators/LoginRequestValidator.cs`

### Commerce services

- [Products service](https://github.com/virendratamrakar-dotnet/dot-net-microservices-with-azure-and-aks/blob/main/02.%20Products%20Microservice/16.%20Products%20Angular%20UI/src/app/services/products.service.ts): `02. Products Microservice/16. Products Angular UI/src/app/services/products.service.ts`
- [Orders client](https://github.com/virendratamrakar-dotnet/dot-net-microservices-with-azure-and-aks/blob/main/06.%20Microservice%20Communication/12.%20Frontend%20with%20Orders/frontend/src/app/services/cart.service.ts): `06. Microservice Communication/12. Frontend with Orders/frontend/src/app/services/cart.service.ts`

### Service capabilities

- [Fault tolerance](https://github.com/virendratamrakar-dotnet/dot-net-microservices-with-azure-and-aks/blob/main/07.%20Fault%20Tolerance/01.%20WaitAndRetry/frontend/src/app/app.routes.ts): `07. Fault Tolerance/01. WaitAndRetry/frontend/src/app/app.routes.ts`
- [Redis caching](https://github.com/virendratamrakar-dotnet/dot-net-microservices-with-azure-and-aks/blob/main/08.%20Caching/03.%20Reading%20from%20Cache/frontend/src/app/app.routes.ts): `08. Caching/03. Reading from Cache/frontend/src/app/app.routes.ts`
- [API gateway](https://github.com/virendratamrakar-dotnet/dot-net-microservices-with-azure-and-aks/blob/main/09.%20API%20Gateway%20using%20Ocelot/05.%20Microservice%20Communication%20with%20API%20Gateway/frontend/src/app/app.routes.ts): `09. API Gateway using Ocelot/05. Microservice Communication with API Gateway/frontend/src/app/app.routes.ts`
- [RabbitMQ messaging](https://github.com/virendratamrakar-dotnet/dot-net-microservices-with-azure-and-aks/blob/main/10.%20RabbitMQ/04.%20Publisher%20Class/frontend/src/app/app.routes.ts): `10. RabbitMQ/04. Publisher Class/frontend/src/app/app.routes.ts`
- [Azure Service Bus](https://github.com/virendratamrakar-dotnet/dot-net-microservices-with-azure-and-aks/blob/main/16.%20Azure%20ServiceBus/02.%20Product%20Updation%20Topic%20Publisher%20-%20Part%201/frontend/src/app/app.routes.ts): `16. Azure ServiceBus/02. Product Updation Topic Publisher - Part 1/frontend/src/app/app.routes.ts`
- [Entra B2C identity](https://github.com/virendratamrakar-dotnet/dot-net-microservices-with-azure-and-aks/blob/main/15.%20Microsoft%20Entra%20ID%20-%20B2C%20Authentication/06.%20Graph%20API%20Configuration%20in%20Users%20Microservice/frontend/src/app/app.routes.ts): `15. Microsoft Entra ID - B2C Authentication/06. Graph API Configuration in Users Microservice/frontend/src/app/app.routes.ts`
- [Postgres and Dapper](https://github.com/virendratamrakar-dotnet/dot-net-microservices-with-azure-and-aks/blob/main/01.%20Users%20Microservice/12.%20Intro%20to%20Dapper/eCommerce.Infrastructure/DbContext/DapperDbContext.cs): `01. Users Microservice/12. Intro to Dapper/eCommerce.Infrastructure/DbContext/DapperDbContext.cs`

### Other components

- **Shopper**

## Connections

- Shopper → Client routes: opens (evidence: `06. Microservice Communication/12. Frontend with Orders/frontend/src/app/app.routes.ts`)
- Client routes → Login view: routes to
- Login view → Users client: uses (evidence: `01. Users Microservice/19. Angular Client App/src/app/components/login/login.component.ts`)
- Login view → Auth response: uses response (evidence: `01. Users Microservice/19. Angular Client App/src/app/components/login/login.component.ts`)
- Client routes → Product UI: routes to (evidence: `02. Products Microservice/16. Products Angular UI/src/app/app.routes.ts`)
- Client routes → Cart and orders: routes to (evidence: `06. Microservice Communication/12. Frontend with Orders/frontend/src/app/app.routes.ts`)
