# santhansai11/cloud-native-devops-project architecture

> Architecture diagram of the GitHub repository santhansai11/cloud-native-devops-project, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-12). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/santhansai11/cloud-native-devops-project
- Repository: https://github.com/santhansai11/cloud-native-devops-project

## Overview

This repository contains the OpenTelemetry Astronomy Shop: a microservice e-commerce application, with deployment infrastructure described separately in the README. Its user workflow is browsing products and prices, managing a cart, and submitting an order; checkout coordinates fulfillment and confirmation. The graph emphasizes source-supported runtime relationships and preserves other substantial shop services as independent capabilities. Several service implementations are unsampled, so their internal links are omitted rather than inferred.

Main entry points: [`src/checkout/main.go`](https://github.com/santhansai11/cloud-native-devops-project/blob/main/src/checkout/main.go) (Checkout Service), [`src/frontend/services/ProductCatalog.service.ts`](https://github.com/santhansai11/cloud-native-devops-project/blob/main/src/frontend/services/ProductCatalog.service.ts) (Product Browsing), [`src/frontend/pages/index.tsx`](https://github.com/santhansai11/cloud-native-devops-project/blob/main/src/frontend/pages/index.tsx) (Web Storefront), [`src/cart/src/services/CartService.cs`](https://github.com/santhansai11/cloud-native-devops-project/blob/main/src/cart/src/services/CartService.cs) (Cart Service)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_storefront["Storefront"]
  node_web["Web Storefront<br/>[index.tsx]"]
  node_product_browsing["Product Browsing"]
  node_product_gateway["Catalog Gateway"]
  node_currency_gateway["Currency Gateway"]
  node_cart_ui["Cart UI<br/>[Cart.provider.tsx]"]
  node_checkout_ui["Checkout UI<br/>[CheckoutForm.tsx]"]
  node_mobile["Mobile App<br/>[index.tsx]"]
end

subgraph group_commerce["Commerce Services"]
  node_catalog["Product Catalog<br/>[main.go]"]
  node_cart["Cart Service<br/>[CartService.cs]"]
  node_cart_store[("Valkey Cart Store<br/>[ValkeyCartStore.cs]")]
  node_checkout["Checkout Service<br/>[main.go]"]
  node_currency["Currency Service<br/>[server.cpp]"]
end

subgraph group_fulfillment["Order Fulfillment"]
  node_shipping["Shipping Service"]
  node_shipping_quotes["Quote Calculation<br/>[quote.rs]"]
  node_email["Email Service<br/>[email_server.rb]"]
  node_order_events["Order Event Producer<br/>[producer.go]"]
end

subgraph group_support["Shop Capabilities"]
  node_ads["Ad Service<br/>[AdService.java]"]
  node_recommendations["Recommendations"]
  node_fraud["Fraud Detection<br/>[main.kt]"]
  node_accounting["Accounting Consumer<br/>[Consumer.cs]"]
  node_quote["Quote Service<br/>[routes.php]"]
  node_payment["Payment Service<br/>[charge.js]"]
  node_flag_ui["Feature Flag UI<br/>[BasicView.tsx]"]
end

node_shopper(("Shopper"))

node_shopper -->|"browses"| node_web
node_web -.->|"shows products"| node_product_browsing
node_product_browsing -->|"requests products"| node_product_gateway
node_product_browsing -->|"converts prices"| node_currency_gateway
node_shopper -.->|"manages cart"| node_cart_ui
node_shopper -.->|"submits order"| node_checkout_ui
node_checkout -->|"reads and empties"| node_cart
node_cart -->|"reads and writes"| node_cart_store
node_checkout -->|"requests shipping"| node_shipping
node_shipping -->|"calculates quote"| node_shipping_quotes
node_checkout -->|"converts amounts"| node_currency
node_checkout -->|"sends confirmation"| node_email
node_checkout -->|"publishes order"| node_order_events

click node_web "https://github.com/santhansai11/cloud-native-devops-project/blob/main/src/frontend/pages/index.tsx"
click node_product_browsing "https://github.com/santhansai11/cloud-native-devops-project/blob/main/src/frontend/services/ProductCatalog.service.ts"
click node_product_gateway "https://github.com/santhansai11/cloud-native-devops-project/blob/main/src/frontend/gateways/rpc/ProductCatalog.gateway.ts"
click node_currency_gateway "https://github.com/santhansai11/cloud-native-devops-project/blob/main/src/frontend/gateways/rpc/Currency.gateway.ts"
click node_cart_ui "https://github.com/santhansai11/cloud-native-devops-project/blob/main/src/frontend/providers/Cart.provider.tsx"
click node_checkout_ui "https://github.com/santhansai11/cloud-native-devops-project/blob/main/src/frontend/components/CheckoutForm/CheckoutForm.tsx"
click node_catalog "https://github.com/santhansai11/cloud-native-devops-project/blob/main/src/product-catalog/main.go"
click node_cart "https://github.com/santhansai11/cloud-native-devops-project/blob/main/src/cart/src/services/CartService.cs"
click node_cart_store "https://github.com/santhansai11/cloud-native-devops-project/blob/main/src/cart/src/cartstore/ValkeyCartStore.cs"
click node_checkout "https://github.com/santhansai11/cloud-native-devops-project/blob/main/src/checkout/main.go"
click node_currency "https://github.com/santhansai11/cloud-native-devops-project/blob/main/src/currency/src/server.cpp"
click node_shipping "https://github.com/santhansai11/cloud-native-devops-project/blob/main/src/shipping/src/shipping_service.rs"
click node_shipping_quotes "https://github.com/santhansai11/cloud-native-devops-project/blob/main/src/shipping/src/shipping_service/quote.rs"
click node_email "https://github.com/santhansai11/cloud-native-devops-project/blob/main/src/email/email_server.rb"
click node_order_events "https://github.com/santhansai11/cloud-native-devops-project/blob/main/src/checkout/kafka/producer.go"
click node_ads "https://github.com/santhansai11/cloud-native-devops-project/blob/main/src/ad/src/main/java/oteldemo/AdService.java"
click node_recommendations "https://github.com/santhansai11/cloud-native-devops-project/blob/main/src/recommendation/recommendation_server.py"
click node_fraud "https://github.com/santhansai11/cloud-native-devops-project/blob/main/src/fraud-detection/src/main/kotlin/frauddetection/main.kt"
click node_accounting "https://github.com/santhansai11/cloud-native-devops-project/blob/main/src/accounting/Consumer.cs"
click node_quote "https://github.com/santhansai11/cloud-native-devops-project/blob/main/src/quote/app/routes.php"
click node_payment "https://github.com/santhansai11/cloud-native-devops-project/blob/main/src/payment/charge.js"
click node_mobile "https://github.com/santhansai11/cloud-native-devops-project/blob/main/src/react-native-app/app/(tabs)/index.tsx"
click node_flag_ui "https://github.com/santhansai11/cloud-native-devops-project/blob/main/src/flagd-ui/src/components/basic/BasicView.tsx"

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_web,node_product_browsing,node_product_gateway,node_currency_gateway,node_cart_ui,node_checkout_ui,node_mobile toneBlue
class node_catalog,node_cart,node_cart_store,node_checkout,node_currency toneAmber
class node_shipping,node_shipping_quotes,node_email,node_order_events toneMint
class node_ads,node_recommendations,node_fraud,node_accounting,node_quote,node_payment,node_flag_ui toneRose
class node_shopper toneIndigo
```

## Components

### Storefront

- [Web Storefront](https://github.com/santhansai11/cloud-native-devops-project/blob/main/src/frontend/pages/index.tsx): `src/frontend/pages/index.tsx`
- [Product Browsing](https://github.com/santhansai11/cloud-native-devops-project/blob/main/src/frontend/services/ProductCatalog.service.ts): `src/frontend/services/ProductCatalog.service.ts`
- [Catalog Gateway](https://github.com/santhansai11/cloud-native-devops-project/blob/main/src/frontend/gateways/rpc/ProductCatalog.gateway.ts): `src/frontend/gateways/rpc/ProductCatalog.gateway.ts`
- [Currency Gateway](https://github.com/santhansai11/cloud-native-devops-project/blob/main/src/frontend/gateways/rpc/Currency.gateway.ts): `src/frontend/gateways/rpc/Currency.gateway.ts`
- [Cart UI](https://github.com/santhansai11/cloud-native-devops-project/blob/main/src/frontend/providers/Cart.provider.tsx): `src/frontend/providers/Cart.provider.tsx`
- [Checkout UI](https://github.com/santhansai11/cloud-native-devops-project/blob/main/src/frontend/components/CheckoutForm/CheckoutForm.tsx): `src/frontend/components/CheckoutForm/CheckoutForm.tsx`
- [Mobile App](https://github.com/santhansai11/cloud-native-devops-project/blob/main/src/react-native-app/app/(tabs)/index.tsx): `src/react-native-app/app/(tabs)/index.tsx`

### Commerce Services

- [Product Catalog](https://github.com/santhansai11/cloud-native-devops-project/blob/main/src/product-catalog/main.go): `src/product-catalog/main.go`
- [Cart Service](https://github.com/santhansai11/cloud-native-devops-project/blob/main/src/cart/src/services/CartService.cs): `src/cart/src/services/CartService.cs`
- [Valkey Cart Store](https://github.com/santhansai11/cloud-native-devops-project/blob/main/src/cart/src/cartstore/ValkeyCartStore.cs): `src/cart/src/cartstore/ValkeyCartStore.cs`
- [Checkout Service](https://github.com/santhansai11/cloud-native-devops-project/blob/main/src/checkout/main.go): `src/checkout/main.go`
- [Currency Service](https://github.com/santhansai11/cloud-native-devops-project/blob/main/src/currency/src/server.cpp): `src/currency/src/server.cpp`

### Order Fulfillment

- [Shipping Service](https://github.com/santhansai11/cloud-native-devops-project/blob/main/src/shipping/src/shipping_service.rs): `src/shipping/src/shipping_service.rs`
- [Quote Calculation](https://github.com/santhansai11/cloud-native-devops-project/blob/main/src/shipping/src/shipping_service/quote.rs): `src/shipping/src/shipping_service/quote.rs`
- [Email Service](https://github.com/santhansai11/cloud-native-devops-project/blob/main/src/email/email_server.rb): `src/email/email_server.rb`
- [Order Event Producer](https://github.com/santhansai11/cloud-native-devops-project/blob/main/src/checkout/kafka/producer.go): `src/checkout/kafka/producer.go`

### Shop Capabilities

- [Ad Service](https://github.com/santhansai11/cloud-native-devops-project/blob/main/src/ad/src/main/java/oteldemo/AdService.java): `src/ad/src/main/java/oteldemo/AdService.java`
- [Recommendations](https://github.com/santhansai11/cloud-native-devops-project/blob/main/src/recommendation/recommendation_server.py): `src/recommendation/recommendation_server.py`
- [Fraud Detection](https://github.com/santhansai11/cloud-native-devops-project/blob/main/src/fraud-detection/src/main/kotlin/frauddetection/main.kt): `src/fraud-detection/src/main/kotlin/frauddetection/main.kt`
- [Accounting Consumer](https://github.com/santhansai11/cloud-native-devops-project/blob/main/src/accounting/Consumer.cs): `src/accounting/Consumer.cs`
- [Quote Service](https://github.com/santhansai11/cloud-native-devops-project/blob/main/src/quote/app/routes.php): `src/quote/app/routes.php`
- [Payment Service](https://github.com/santhansai11/cloud-native-devops-project/blob/main/src/payment/charge.js): `src/payment/charge.js`
- [Feature Flag UI](https://github.com/santhansai11/cloud-native-devops-project/blob/main/src/flagd-ui/src/components/basic/BasicView.tsx): `src/flagd-ui/src/components/basic/BasicView.tsx`

### Other components

- **Shopper**

## Connections

- Shopper → Web Storefront: browses (evidence: `README.md`)
- Web Storefront → Product Browsing: shows products
- Product Browsing → Catalog Gateway: requests products (evidence: `src/frontend/services/ProductCatalog.service.ts`)
- Product Browsing → Currency Gateway: converts prices (evidence: `src/frontend/services/ProductCatalog.service.ts`)
- Shopper → Cart UI: manages cart
- Shopper → Checkout UI: submits order
- Checkout Service → Cart Service: reads and empties (evidence: `src/checkout/main.go`)
- Cart Service → Valkey Cart Store: reads and writes (evidence: `src/cart/src/services/CartService.cs`)
- Checkout Service → Shipping Service: requests shipping (evidence: `src/checkout/main.go`)
- Shipping Service → Quote Calculation: calculates quote (evidence: `src/shipping/src/shipping_service.rs`)
- Checkout Service → Currency Service: converts amounts (evidence: `src/checkout/main.go`)
- Checkout Service → Email Service: sends confirmation (evidence: `src/checkout/main.go`)
- Checkout Service → Order Event Producer: publishes order (evidence: `src/checkout/main.go`)
