# vikesh-bansal/dot-net-microservices-with-azure-and-aks architecture

> Architecture diagram of the GitHub repository vikesh-bansal/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/vikesh-bansal/dot-net-microservices-with-azure-and-aks
- Repository: https://github.com/vikesh-bansal/dot-net-microservices-with-azure-and-aks

## Overview

This repository is a hands-on ASP.NET Core microservices course, represented by successive chapter snapshots rather than one integrated application. Its principal demonstrated user journey is through an Angular client: users can register or log in, browse and manage products, and— in the orders-enabled frontend—use a cart and view customer or admin orders. The tree also documents distinct learning branches for fault tolerance, caching, gateways, messaging, Azure services, and identity. Source excerpts chiefly establish frontend routes; backend and cross-service wiring is therefore not inferred.

Main entry points: [`06. Microservice Communication/12. Frontend with Orders/frontend/src/app/app.routes.ts`](https://github.com/vikesh-bansal/dot-net-microservices-with-azure-and-aks/blob/main/06.%20Microservice%20Communication/12.%20Frontend%20with%20Orders/frontend/src/app/app.routes.ts) (Orders frontend), [`06. Microservice Communication/12. Frontend with Orders/frontend/src/app/components/login`](https://github.com/vikesh-bansal/dot-net-microservices-with-azure-and-aks/tree/main/06.%20Microservice%20Communication/12.%20Frontend%20with%20Orders/frontend/src/app/components/login) (Auth screens), [`06. Microservice Communication/12. Frontend with Orders/frontend/src/app/components/products`](https://github.com/vikesh-bansal/dot-net-microservices-with-azure-and-aks/tree/main/06.%20Microservice%20Communication/12.%20Frontend%20with%20Orders/frontend/src/app/components/products) (Product screens), [`06. Microservice Communication/12. Frontend with Orders/frontend/src/app/components/cart`](https://github.com/vikesh-bansal/dot-net-microservices-with-azure-and-aks/tree/main/06.%20Microservice%20Communication/12.%20Frontend%20with%20Orders/frontend/src/app/components/cart) (Cart screens)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_clients["Client applications"]
  node_orders_ui["Orders frontend<br/>[app.routes.ts]"]
  node_auth_ui["Auth screens<br/>[login]"]
  node_product_ui["Product screens<br/>[products]"]
  node_cart_ui["Cart screens<br/>[cart]"]
  node_orders_screens["Order screens<br/>[orders]"]
end

subgraph group_services["Microservice capabilities"]
  node_users_service["Users service<br/>[UsersService.cs]"]
  node_products_service["Products service"]
  node_orders_service["Orders service"]
end

subgraph group_resilience["Resilience and caching"]
  node_fault_policies["Fault tolerance"]
  node_redis_cache[("Redis caching<br/>[08. Caching]")]
end

subgraph group_integration["Service integration"]
  node_api_gateway["Ocelot gateway"]
  node_rabbitmq["RabbitMQ messaging<br/>[10. RabbitMQ]"]
  node_azure_bus["Azure Service Bus"]
  node_entra_b2c["Entra B2C"]
  node_azure_apim["Azure API Management"]
end

node_shopper(("Shopper / admin"))

node_shopper -.->|"uses"| node_orders_ui
node_orders_ui -->|"routes to"| node_auth_ui
node_orders_ui -->|"routes to"| node_product_ui
node_orders_ui -->|"routes to"| node_cart_ui
node_orders_ui -->|"routes to"| node_orders_screens
node_auth_ui -.->|"calls service"| node_users_service
node_product_ui -.->|"calls service"| node_products_service
node_cart_ui -.->|"calls service"| node_orders_service
node_orders_screens -.->|"calls service"| node_orders_service

click node_orders_ui "https://github.com/vikesh-bansal/dot-net-microservices-with-azure-and-aks/blob/main/06.%20Microservice%20Communication/12.%20Frontend%20with%20Orders/frontend/src/app/app.routes.ts"
click node_auth_ui "https://github.com/vikesh-bansal/dot-net-microservices-with-azure-and-aks/tree/main/06.%20Microservice%20Communication/12.%20Frontend%20with%20Orders/frontend/src/app/components/login"
click node_product_ui "https://github.com/vikesh-bansal/dot-net-microservices-with-azure-and-aks/tree/main/06.%20Microservice%20Communication/12.%20Frontend%20with%20Orders/frontend/src/app/components/products"
click node_cart_ui "https://github.com/vikesh-bansal/dot-net-microservices-with-azure-and-aks/tree/main/06.%20Microservice%20Communication/12.%20Frontend%20with%20Orders/frontend/src/app/components/cart"
click node_orders_screens "https://github.com/vikesh-bansal/dot-net-microservices-with-azure-and-aks/tree/main/06.%20Microservice%20Communication/12.%20Frontend%20with%20Orders/frontend/src/app/components/orders"
click node_users_service "https://github.com/vikesh-bansal/dot-net-microservices-with-azure-and-aks/blob/main/01.%20Users%20Microservice/15.%20FluentValidation/eCommerce.Core/Services/UsersService.cs"
click node_products_service "https://github.com/vikesh-bansal/dot-net-microservices-with-azure-and-aks/tree/main/02.%20Products%20Microservice"
click node_orders_service "https://github.com/vikesh-bansal/dot-net-microservices-with-azure-and-aks/tree/main/06.%20Microservice%20Communication"
click node_fault_policies "https://github.com/vikesh-bansal/dot-net-microservices-with-azure-and-aks/tree/main/07.%20Fault%20Tolerance"
click node_redis_cache "https://github.com/vikesh-bansal/dot-net-microservices-with-azure-and-aks/tree/main/08.%20Caching"
click node_api_gateway "https://github.com/vikesh-bansal/dot-net-microservices-with-azure-and-aks/tree/main/09.%20API%20Gateway%20using%20Ocelot"
click node_rabbitmq "https://github.com/vikesh-bansal/dot-net-microservices-with-azure-and-aks/tree/main/10.%20RabbitMQ"
click node_azure_bus "https://github.com/vikesh-bansal/dot-net-microservices-with-azure-and-aks/tree/main/16.%20Azure%20ServiceBus"
click node_entra_b2c "https://github.com/vikesh-bansal/dot-net-microservices-with-azure-and-aks/tree/main/15.%20Microsoft%20Entra%20ID%20-%20B2C%20Authentication"
click node_azure_apim "https://github.com/vikesh-bansal/dot-net-microservices-with-azure-and-aks/tree/main/14.%20Azure%20API%20Management"

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_orders_ui,node_auth_ui,node_product_ui,node_cart_ui,node_orders_screens toneBlue
class node_users_service,node_products_service,node_orders_service toneAmber
class node_fault_policies,node_redis_cache toneMint
class node_api_gateway,node_rabbitmq,node_azure_bus,node_entra_b2c,node_azure_apim toneRose
class node_shopper toneIndigo
```

## Components

### Client applications

- [Orders frontend](https://github.com/vikesh-bansal/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`
- [Auth screens](https://github.com/vikesh-bansal/dot-net-microservices-with-azure-and-aks/tree/main/06.%20Microservice%20Communication/12.%20Frontend%20with%20Orders/frontend/src/app/components/login): `06. Microservice Communication/12. Frontend with Orders/frontend/src/app/components/login`
- [Product screens](https://github.com/vikesh-bansal/dot-net-microservices-with-azure-and-aks/tree/main/06.%20Microservice%20Communication/12.%20Frontend%20with%20Orders/frontend/src/app/components/products): `06. Microservice Communication/12. Frontend with Orders/frontend/src/app/components/products`
- [Cart screens](https://github.com/vikesh-bansal/dot-net-microservices-with-azure-and-aks/tree/main/06.%20Microservice%20Communication/12.%20Frontend%20with%20Orders/frontend/src/app/components/cart): `06. Microservice Communication/12. Frontend with Orders/frontend/src/app/components/cart`
- [Order screens](https://github.com/vikesh-bansal/dot-net-microservices-with-azure-and-aks/tree/main/06.%20Microservice%20Communication/12.%20Frontend%20with%20Orders/frontend/src/app/components/orders): `06. Microservice Communication/12. Frontend with Orders/frontend/src/app/components/orders`

### Microservice capabilities

- [Users service](https://github.com/vikesh-bansal/dot-net-microservices-with-azure-and-aks/blob/main/01.%20Users%20Microservice/15.%20FluentValidation/eCommerce.Core/Services/UsersService.cs): `01. Users Microservice/15. FluentValidation/eCommerce.Core/Services/UsersService.cs`
- [Products service](https://github.com/vikesh-bansal/dot-net-microservices-with-azure-and-aks/tree/main/02.%20Products%20Microservice): `02. Products Microservice`
- [Orders service](https://github.com/vikesh-bansal/dot-net-microservices-with-azure-and-aks/tree/main/06.%20Microservice%20Communication): `06. Microservice Communication`

### Resilience and caching

- [Fault tolerance](https://github.com/vikesh-bansal/dot-net-microservices-with-azure-and-aks/tree/main/07.%20Fault%20Tolerance): `07. Fault Tolerance`
- [Redis caching](https://github.com/vikesh-bansal/dot-net-microservices-with-azure-and-aks/tree/main/08.%20Caching): `08. Caching`

### Service integration

- [Ocelot gateway](https://github.com/vikesh-bansal/dot-net-microservices-with-azure-and-aks/tree/main/09.%20API%20Gateway%20using%20Ocelot): `09. API Gateway using Ocelot`
- [RabbitMQ messaging](https://github.com/vikesh-bansal/dot-net-microservices-with-azure-and-aks/tree/main/10.%20RabbitMQ): `10. RabbitMQ`
- [Azure Service Bus](https://github.com/vikesh-bansal/dot-net-microservices-with-azure-and-aks/tree/main/16.%20Azure%20ServiceBus): `16. Azure ServiceBus`
- [Entra B2C](https://github.com/vikesh-bansal/dot-net-microservices-with-azure-and-aks/tree/main/15.%20Microsoft%20Entra%20ID%20-%20B2C%20Authentication): `15. Microsoft Entra ID - B2C Authentication`
- [Azure API Management](https://github.com/vikesh-bansal/dot-net-microservices-with-azure-and-aks/tree/main/14.%20Azure%20API%20Management): `14. Azure API Management`

### Other components

- **Shopper / admin**

## Connections

- Shopper / admin → Orders frontend: uses
- Orders frontend → Auth screens: routes to (evidence: `06. Microservice Communication/12. Frontend with Orders/frontend/src/app/app.routes.ts`)
- Orders frontend → Product screens: routes to (evidence: `06. Microservice Communication/12. Frontend with Orders/frontend/src/app/app.routes.ts`)
- Orders frontend → Cart screens: routes to (evidence: `06. Microservice Communication/12. Frontend with Orders/frontend/src/app/app.routes.ts`)
- Orders frontend → Order screens: routes to (evidence: `06. Microservice Communication/12. Frontend with Orders/frontend/src/app/app.routes.ts`)
- Auth screens → Users service: calls service
- Product screens → Products service: calls service
- Cart screens → Orders service: calls service (evidence: `06. Microservice Communication/12. Frontend with Orders/frontend/src/app/components/cart/cart.component.ts`)
- Order screens → Orders service: calls service (evidence: `06. Microservice Communication/12. Frontend with Orders/frontend/src/app/app.routes.ts`)
