# muratyucedag/multishop architecture

> Architecture diagram of the GitHub repository muratyucedag/multishop, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-19). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/muratyucedag/multishop
- Repository: https://github.com/muratyucedag/multishop

## Overview

MultiShop is a microservice-based online shop, with a storefront and admin/user areas alongside identity, catalog, basket, order, payment, discount, cargo, messaging, comments, and realtime services. The intended customer journey runs from browsing products through basket and checkout to ordering, but the excerpts do not establish most WebUI-to-service calls, so those links are shown as unverified. The graph includes the sampled controller/service and order-handler/repository relationships; the README is empty, and unsampled capabilities are represented only where the file tree supports them.

Main entry points: [`Frontends/MultiShop.WebUI/Services`](https://github.com/muratyucedag/multishop/tree/master/Frontends/MultiShop.WebUI/Services) (API client services), [`Frontends/MultiShop.WebUI`](https://github.com/muratyucedag/multishop/tree/master/Frontends/MultiShop.WebUI) (Storefront and admin), [`ApiGateway/MultiShop.OcelotGateway/Program.cs`](https://github.com/muratyucedag/multishop/blob/master/ApiGateway/MultiShop.OcelotGateway/Program.cs) (Ocelot gateway), [`IdentityServer/MultiShop.IdentityServer/Program.cs`](https://github.com/muratyucedag/multishop/blob/master/IdentityServer/MultiShop.IdentityServer/Program.cs) (Identity server)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Web experience"]
  node_webui["Storefront and admin<br/>[MultiShop.WebUI]"]
  node_webservices["API client services<br/>[Services]"]
  node_dtos["Shop DTOs<br/>[MultiShop.DtoLayer]"]
  node_gateway["Ocelot gateway<br/>[Program.cs]"]
end

subgraph group_identity["Identity"]
  node_identityserver["Identity server<br/>[Program.cs]"]
  node_account["Login and logout"]
  node_consent["Authorization consent"]
end

subgraph group_commerce["Commerce services"]
  node_catalog["Product catalog<br/>[MultiShop.Catalog]"]
  node_basket["Shopping basket<br/>[MultiShop.Basket]"]
  node_discount["Coupons and discounts"]
  node_comment["Product comments"]
end

subgraph group_fulfillment["Orders and fulfillment"]
  node_orderapi["Order API"]
  node_orderhandlers["Order query handlers<br/>[Features]"]
  node_repository["Order repositories<br/>[IRepository.cs]"]
  node_orderdata["Order data<br/>[Entities]"]
  node_cargoapi["Cargo API"]
  node_cargobusiness["Cargo business layer<br/>[Concrete]"]
  node_payment["Payment service<br/>[MultiShop.Payment]"]
end

subgraph group_communications["Communications"]
  node_messages["User messaging"]
  node_realtime["Realtime hubs"]
end

node_shopper(("Shopper"))

node_shopper -->|"uses"| node_webui
node_webui -.->|"uses clients"| node_webservices
node_webservices -.->|"routes requests"| node_gateway
node_gateway -.->|"routes to"| node_catalog
node_gateway -.->|"routes to"| node_basket
node_gateway -.->|"routes to"| node_orderapi
node_webui -.->|"authenticates via"| node_identityserver
node_identityserver -.->|"hosts account flow"| node_account
node_identityserver -.->|"hosts consent flow"| node_consent
node_webservices -.->|"uses contracts"| node_dtos
node_orderapi -.->|"dispatches queries"| node_orderhandlers
node_orderhandlers -->|"queries"| node_repository
node_orderhandlers -->|"maps entities"| node_orderdata
node_cargoapi -->|"invokes service"| node_cargobusiness
node_messages -->|"invokes service"| node_messages
node_webservices -.->|"calls API"| node_discount
node_webservices -.->|"calls API"| node_comment
node_webservices -.->|"calls API"| node_payment
node_webui -.->|"connects to"| node_realtime

click node_webui "https://github.com/muratyucedag/multishop/tree/master/Frontends/MultiShop.WebUI"
click node_webservices "https://github.com/muratyucedag/multishop/tree/master/Frontends/MultiShop.WebUI/Services"
click node_dtos "https://github.com/muratyucedag/multishop/tree/master/Frontends/MultiShop.DtoLayer"
click node_gateway "https://github.com/muratyucedag/multishop/blob/master/ApiGateway/MultiShop.OcelotGateway/Program.cs"
click node_identityserver "https://github.com/muratyucedag/multishop/blob/master/IdentityServer/MultiShop.IdentityServer/Program.cs"
click node_account "https://github.com/muratyucedag/multishop/blob/master/IdentityServer/MultiShop.IdentityServer/Quickstart/Account/AccountController.cs"
click node_consent "https://github.com/muratyucedag/multishop/blob/master/IdentityServer/MultiShop.IdentityServer/Quickstart/Consent/ConsentController.cs"
click node_catalog "https://github.com/muratyucedag/multishop/tree/master/Services/Catalog/MultiShop.Catalog"
click node_basket "https://github.com/muratyucedag/multishop/tree/master/Services/Basket/MultiShop.Basket"
click node_discount "https://github.com/muratyucedag/multishop/blob/master/Services/Discount/MultiShop.Discount/Controllers/DiscountsController.cs"
click node_comment "https://github.com/muratyucedag/multishop/blob/master/Services/Comment/MultiShop.Comment/Controllers/CommentsController.cs"
click node_orderapi "https://github.com/muratyucedag/multishop/tree/master/Services/Order/Presentation/MultiShop.Order.WebApi"
click node_orderhandlers "https://github.com/muratyucedag/multishop/tree/master/Services/Order/Core/MultiShop.Order.Application/Features"
click node_repository "https://github.com/muratyucedag/multishop/blob/master/Services/Order/Core/MultiShop.Order.Application/Interfaces/IRepository.cs"
click node_orderdata "https://github.com/muratyucedag/multishop/tree/master/Services/Order/Core/MultiShop.Order.Domain/Entities"
click node_cargoapi "https://github.com/muratyucedag/multishop/blob/master/Services/Cargo/MultiShop.Cargo.WebApi/Controllers/CargoCustomersController.cs"
click node_cargobusiness "https://github.com/muratyucedag/multishop/tree/master/Services/Cargo/MultiShop.Cargo.BusinessLayer/Concrete"
click node_payment "https://github.com/muratyucedag/multishop/tree/master/Services/Payment/MultiShop.Payment"
click node_messages "https://github.com/muratyucedag/multishop/blob/master/Services/Message/MultiShop.Message/Controllers/UserMessageController.cs"
click node_realtime "https://github.com/muratyucedag/multishop/tree/master/Services/SignalRRealTime/MultiShop.SignalRRealTimeApi"

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_webui,node_webservices,node_dtos,node_gateway toneBlue
class node_identityserver,node_account,node_consent toneAmber
class node_catalog,node_basket,node_discount,node_comment toneMint
class node_orderapi,node_orderhandlers,node_repository,node_orderdata,node_cargoapi,node_cargobusiness,node_payment toneRose
class node_messages,node_realtime,node_shopper toneIndigo
```

## Components

### Web experience

- [Storefront and admin](https://github.com/muratyucedag/multishop/tree/master/Frontends/MultiShop.WebUI): `Frontends/MultiShop.WebUI`
- [API client services](https://github.com/muratyucedag/multishop/tree/master/Frontends/MultiShop.WebUI/Services): `Frontends/MultiShop.WebUI/Services`
- [Shop DTOs](https://github.com/muratyucedag/multishop/tree/master/Frontends/MultiShop.DtoLayer): `Frontends/MultiShop.DtoLayer`
- [Ocelot gateway](https://github.com/muratyucedag/multishop/blob/master/ApiGateway/MultiShop.OcelotGateway/Program.cs): `ApiGateway/MultiShop.OcelotGateway/Program.cs`

### Identity

- [Identity server](https://github.com/muratyucedag/multishop/blob/master/IdentityServer/MultiShop.IdentityServer/Program.cs): `IdentityServer/MultiShop.IdentityServer/Program.cs`
- [Login and logout](https://github.com/muratyucedag/multishop/blob/master/IdentityServer/MultiShop.IdentityServer/Quickstart/Account/AccountController.cs): `IdentityServer/MultiShop.IdentityServer/Quickstart/Account/AccountController.cs`
- [Authorization consent](https://github.com/muratyucedag/multishop/blob/master/IdentityServer/MultiShop.IdentityServer/Quickstart/Consent/ConsentController.cs): `IdentityServer/MultiShop.IdentityServer/Quickstart/Consent/ConsentController.cs`

### Commerce services

- [Product catalog](https://github.com/muratyucedag/multishop/tree/master/Services/Catalog/MultiShop.Catalog): `Services/Catalog/MultiShop.Catalog`
- [Shopping basket](https://github.com/muratyucedag/multishop/tree/master/Services/Basket/MultiShop.Basket): `Services/Basket/MultiShop.Basket`
- [Coupons and discounts](https://github.com/muratyucedag/multishop/blob/master/Services/Discount/MultiShop.Discount/Controllers/DiscountsController.cs): `Services/Discount/MultiShop.Discount/Controllers/DiscountsController.cs`
- [Product comments](https://github.com/muratyucedag/multishop/blob/master/Services/Comment/MultiShop.Comment/Controllers/CommentsController.cs): `Services/Comment/MultiShop.Comment/Controllers/CommentsController.cs`

### Orders and fulfillment

- [Order API](https://github.com/muratyucedag/multishop/tree/master/Services/Order/Presentation/MultiShop.Order.WebApi): `Services/Order/Presentation/MultiShop.Order.WebApi`
- [Order query handlers](https://github.com/muratyucedag/multishop/tree/master/Services/Order/Core/MultiShop.Order.Application/Features): `Services/Order/Core/MultiShop.Order.Application/Features`
- [Order repositories](https://github.com/muratyucedag/multishop/blob/master/Services/Order/Core/MultiShop.Order.Application/Interfaces/IRepository.cs): `Services/Order/Core/MultiShop.Order.Application/Interfaces/IRepository.cs`
- [Order data](https://github.com/muratyucedag/multishop/tree/master/Services/Order/Core/MultiShop.Order.Domain/Entities): `Services/Order/Core/MultiShop.Order.Domain/Entities`
- [Cargo API](https://github.com/muratyucedag/multishop/blob/master/Services/Cargo/MultiShop.Cargo.WebApi/Controllers/CargoCustomersController.cs): `Services/Cargo/MultiShop.Cargo.WebApi/Controllers/CargoCustomersController.cs`
- [Cargo business layer](https://github.com/muratyucedag/multishop/tree/master/Services/Cargo/MultiShop.Cargo.BusinessLayer/Concrete): `Services/Cargo/MultiShop.Cargo.BusinessLayer/Concrete`
- [Payment service](https://github.com/muratyucedag/multishop/tree/master/Services/Payment/MultiShop.Payment): `Services/Payment/MultiShop.Payment`

### Communications

- [User messaging](https://github.com/muratyucedag/multishop/blob/master/Services/Message/MultiShop.Message/Controllers/UserMessageController.cs): `Services/Message/MultiShop.Message/Controllers/UserMessageController.cs`
- [Realtime hubs](https://github.com/muratyucedag/multishop/tree/master/Services/SignalRRealTime/MultiShop.SignalRRealTimeApi): `Services/SignalRRealTime/MultiShop.SignalRRealTimeApi`

### Other components

- **Shopper**

## Connections

- Shopper → Storefront and admin: uses
- Storefront and admin → API client services: uses clients (evidence: `Frontends/MultiShop.WebUI/Program.cs`)
- API client services → Ocelot gateway: routes requests
- Ocelot gateway → Product catalog: routes to
- Ocelot gateway → Shopping basket: routes to
- Ocelot gateway → Order API: routes to
- Storefront and admin → Identity server: authenticates via
- Identity server → Login and logout: hosts account flow
- Identity server → Authorization consent: hosts consent flow
- API client services → Shop DTOs: uses contracts (evidence: `Frontends/MultiShop.WebUI/Services/CargoServices/CargoCompanyServices/CargoCompanyService.cs`)
- Order API → Order query handlers: dispatches queries
- Order query handlers → Order repositories: queries (evidence: `Services/Order/Core/MultiShop.Order.Application/Features/CQRS/Handlers/OrderDetailHandlers/GetOrderDetailByIdQueryHandler.cs`)
- Order query handlers → Order data: maps entities (evidence: `Services/Order/Core/MultiShop.Order.Application/Features/CQRS/Handlers/OrderDetailHandlers/GetOrderDetailByIdQueryHandler.cs`)
- Cargo API → Cargo business layer: invokes service (evidence: `Services/Cargo/MultiShop.Cargo.WebApi/Controllers/CargoCustomersController.cs`)
- User messaging → User messaging: invokes service (evidence: `Services/Message/MultiShop.Message/Controllers/UserMessageController.cs`)
- API client services → Coupons and discounts: calls API
- API client services → Product comments: calls API
- API client services → Payment service: calls API
- Storefront and admin → Realtime hubs: connects to
