# jajulanagamani/microservices_based_order_processing_system architecture

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

- Interactive diagram: https://gitdiagram.com/jajulanagamani/microservices_based_order_processing_system
- Repository: https://github.com/jajulanagamani/microservices_based_order_processing_system

## Overview

OrderFlow is a React order-management dashboard backed by four Spring REST services with separate MySQL databases. Users browse workspace metrics and manage customers, products, orders, and notifications. Order creation is the key cross-service workflow: the order service checks customer and product data, reduces stock, saves the order, and requests a confirmation notification. The graph preserves the documented CRUD and stock-adjustment capabilities; some backend resource-to-service wiring is unsampled, so those links are marked unverified.

Main entry points: [`frontend/src/App.jsx`](https://github.com/jajulanagamani/microservices_based_order_processing_system/blob/main/frontend/src/App.jsx) (Workspace Shell), [`frontend/src/services/api.js`](https://github.com/jajulanagamani/microservices_based_order_processing_system/blob/main/frontend/src/services/api.js) (API Clients), [`microservices-order-system/order-service/src/main/java/com/orderprocessing/order_service/order/OrderService.java`](https://github.com/jajulanagamani/microservices_based_order_processing_system/blob/main/microservices-order-system/order-service/src/main/java/com/orderprocessing/order_service/order/OrderService.java) (Order Orchestration), [`frontend/src/components/Ui.jsx`](https://github.com/jajulanagamani/microservices_based_order_processing_system/blob/main/frontend/src/components/Ui.jsx) (Shared UI)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_frontend["Dashboard"]
  node_app["Workspace Shell<br/>[App.jsx]"]
  node_workspace_data["Workspace Data"]
  node_api_clients["API Clients<br/>[api.js]"]
  node_dashboard["Dashboard Metrics<br/>[Dashboard.jsx]"]
  node_charts["Dashboard Charts"]
  node_customers_view["Customer View<br/>[Customers.jsx]"]
  node_products_view["Product View<br/>[Products.jsx]"]
  node_orders_view["Order View<br/>[Orders.jsx]"]
  node_notifications_view["Notification View<br/>[Notifications.jsx]"]
  node_navigation["Sidebar Navigation<br/>[Sidebar.jsx]"]
  node_ui["Shared UI<br/>[Ui.jsx]"]
end

subgraph group_customer["Customer Service"]
  node_customer_api["Customer REST API"]
  node_customer_logic["Customer CRUD"]
  node_customer_store[("Customer Data")]
end

subgraph group_product["Product Service"]
  node_product_api["Product REST API"]
  node_product_logic["Product CRUD And Stock"]
  node_product_store[("Product Data")]
end

subgraph group_orders["Order Processing"]
  node_order_api["Order REST API<br/>[OrderResource.java]"]
  node_order_logic["Order Orchestration<br/>[OrderService.java]"]
  node_order_store[("Order Data")]
end

subgraph group_notifications["Notification Service"]
  node_notification_api["Notification REST API"]
  node_notification_logic["Notification CRUD"]
  node_notification_store[("Notification Data")]
end

node_operator(("Workspace User"))

node_operator -->|"uses"| node_app
node_app -->|"loads data"| node_workspace_data
node_app -->|"renders"| node_dashboard
node_app -->|"renders"| node_customers_view
node_app -->|"renders"| node_products_view
node_app -->|"renders"| node_orders_view
node_app -->|"renders"| node_notifications_view
node_app -->|"renders"| node_navigation
node_dashboard -->|"renders"| node_charts
node_workspace_data -->|"fetches lists"| node_api_clients
node_api_clients -->|"HTTP requests"| node_customer_api
node_api_clients -->|"HTTP requests"| node_product_api
node_api_clients -->|"HTTP requests"| node_order_api
node_api_clients -->|"HTTP requests"| node_notification_api
node_customers_view -->|"CRUD requests"| node_api_clients
node_products_view -->|"CRUD requests"| node_api_clients
node_orders_view -->|"CRUD requests"| node_api_clients
node_customers_view -->|"uses controls"| node_ui
node_products_view -->|"uses controls"| node_ui
node_orders_view -->|"uses controls"| node_ui
node_dashboard -->|"uses controls"| node_ui
node_notifications_view -->|"uses controls"| node_ui
node_customer_api -.->|"delegates"| node_customer_logic
node_customer_logic -->|"reads and writes"| node_customer_store
node_product_api -.->|"delegates"| node_product_logic
node_product_logic -->|"reads and writes"| node_product_store
node_order_api -.->|"delegates"| node_order_logic
node_order_logic -->|"reads and writes"| node_order_store
node_notification_api -.->|"delegates"| node_notification_logic
node_notification_logic -->|"reads and writes"| node_notification_store
node_order_logic -->|"checks customer"| node_customer_api
node_order_logic -->|"checks stock"| node_product_api
node_order_logic -->|"adjusts stock"| node_product_api
node_order_logic -->|"creates notice"| node_notification_api

click node_app "https://github.com/jajulanagamani/microservices_based_order_processing_system/blob/main/frontend/src/App.jsx"
click node_workspace_data "https://github.com/jajulanagamani/microservices_based_order_processing_system/blob/main/frontend/src/hooks/useWorkspaceData.js"
click node_api_clients "https://github.com/jajulanagamani/microservices_based_order_processing_system/blob/main/frontend/src/services/api.js"
click node_dashboard "https://github.com/jajulanagamani/microservices_based_order_processing_system/blob/main/frontend/src/components/Dashboard.jsx"
click node_charts "https://github.com/jajulanagamani/microservices_based_order_processing_system/blob/main/frontend/src/components/DashboardCharts.jsx"
click node_customers_view "https://github.com/jajulanagamani/microservices_based_order_processing_system/blob/main/frontend/src/components/Customers.jsx"
click node_products_view "https://github.com/jajulanagamani/microservices_based_order_processing_system/blob/main/frontend/src/components/Products.jsx"
click node_orders_view "https://github.com/jajulanagamani/microservices_based_order_processing_system/blob/main/frontend/src/components/Orders.jsx"
click node_notifications_view "https://github.com/jajulanagamani/microservices_based_order_processing_system/blob/main/frontend/src/components/Notifications.jsx"
click node_navigation "https://github.com/jajulanagamani/microservices_based_order_processing_system/blob/main/frontend/src/components/Sidebar.jsx"
click node_ui "https://github.com/jajulanagamani/microservices_based_order_processing_system/blob/main/frontend/src/components/Ui.jsx"
click node_customer_api "https://github.com/jajulanagamani/microservices_based_order_processing_system/blob/main/microservices-order-system/customer-service/src/main/java/com/orderprocessing/customer_service/customer/CustomerResource.java"
click node_customer_logic "https://github.com/jajulanagamani/microservices_based_order_processing_system/blob/main/microservices-order-system/customer-service/src/main/java/com/orderprocessing/customer_service/customer/CustomerService.java"
click node_customer_store "https://github.com/jajulanagamani/microservices_based_order_processing_system/blob/main/microservices-order-system/customer-service/src/main/java/com/orderprocessing/customer_service/customer/CustomerRepository.java"
click node_product_api "https://github.com/jajulanagamani/microservices_based_order_processing_system/blob/main/microservices-order-system/product-service/src/main/java/com/orderprocessing/product_service/product/ProductResource.java"
click node_product_logic "https://github.com/jajulanagamani/microservices_based_order_processing_system/blob/main/microservices-order-system/product-service/src/main/java/com/orderprocessing/product_service/product/ProductService.java"
click node_product_store "https://github.com/jajulanagamani/microservices_based_order_processing_system/blob/main/microservices-order-system/product-service/src/main/java/com/orderprocessing/product_service/product/ProductRepository.java"
click node_order_api "https://github.com/jajulanagamani/microservices_based_order_processing_system/blob/main/microservices-order-system/order-service/src/main/java/com/orderprocessing/order_service/order/OrderResource.java"
click node_order_logic "https://github.com/jajulanagamani/microservices_based_order_processing_system/blob/main/microservices-order-system/order-service/src/main/java/com/orderprocessing/order_service/order/OrderService.java"
click node_order_store "https://github.com/jajulanagamani/microservices_based_order_processing_system/blob/main/microservices-order-system/order-service/src/main/java/com/orderprocessing/order_service/order/OrderRepository.java"
click node_notification_api "https://github.com/jajulanagamani/microservices_based_order_processing_system/blob/main/microservices-order-system/notification-service/src/main/java/com/orderprocessing/notification_service/notification/NotificationResource.java"
click node_notification_logic "https://github.com/jajulanagamani/microservices_based_order_processing_system/blob/main/microservices-order-system/notification-service/src/main/java/com/orderprocessing/notification_service/notification/NotificationService.java"
click node_notification_store "https://github.com/jajulanagamani/microservices_based_order_processing_system/blob/main/microservices-order-system/notification-service/src/main/java/com/orderprocessing/notification_service/notification/NotificationRepository.java"

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_app,node_workspace_data,node_api_clients,node_dashboard,node_charts,node_customers_view,node_products_view,node_orders_view,node_notifications_view,node_navigation,node_ui,node_operator toneBlue
class node_customer_api,node_customer_logic,node_customer_store toneAmber
class node_product_api,node_product_logic,node_product_store toneMint
class node_order_api,node_order_logic,node_order_store toneRose
class node_notification_api,node_notification_logic,node_notification_store toneIndigo
```

## Components

### Dashboard

- [Workspace Shell](https://github.com/jajulanagamani/microservices_based_order_processing_system/blob/main/frontend/src/App.jsx): `frontend/src/App.jsx`
- [Workspace Data](https://github.com/jajulanagamani/microservices_based_order_processing_system/blob/main/frontend/src/hooks/useWorkspaceData.js): `frontend/src/hooks/useWorkspaceData.js`
- [API Clients](https://github.com/jajulanagamani/microservices_based_order_processing_system/blob/main/frontend/src/services/api.js): `frontend/src/services/api.js`
- [Dashboard Metrics](https://github.com/jajulanagamani/microservices_based_order_processing_system/blob/main/frontend/src/components/Dashboard.jsx): `frontend/src/components/Dashboard.jsx`
- [Dashboard Charts](https://github.com/jajulanagamani/microservices_based_order_processing_system/blob/main/frontend/src/components/DashboardCharts.jsx): `frontend/src/components/DashboardCharts.jsx`
- [Customer View](https://github.com/jajulanagamani/microservices_based_order_processing_system/blob/main/frontend/src/components/Customers.jsx): `frontend/src/components/Customers.jsx`
- [Product View](https://github.com/jajulanagamani/microservices_based_order_processing_system/blob/main/frontend/src/components/Products.jsx): `frontend/src/components/Products.jsx`
- [Order View](https://github.com/jajulanagamani/microservices_based_order_processing_system/blob/main/frontend/src/components/Orders.jsx): `frontend/src/components/Orders.jsx`
- [Notification View](https://github.com/jajulanagamani/microservices_based_order_processing_system/blob/main/frontend/src/components/Notifications.jsx): `frontend/src/components/Notifications.jsx`
- [Sidebar Navigation](https://github.com/jajulanagamani/microservices_based_order_processing_system/blob/main/frontend/src/components/Sidebar.jsx): `frontend/src/components/Sidebar.jsx`
- [Shared UI](https://github.com/jajulanagamani/microservices_based_order_processing_system/blob/main/frontend/src/components/Ui.jsx): `frontend/src/components/Ui.jsx`

### Customer Service

- [Customer REST API](https://github.com/jajulanagamani/microservices_based_order_processing_system/blob/main/microservices-order-system/customer-service/src/main/java/com/orderprocessing/customer_service/customer/CustomerResource.java): `microservices-order-system/customer-service/src/main/java/com/orderprocessing/customer_service/customer/CustomerResource.java`
- [Customer CRUD](https://github.com/jajulanagamani/microservices_based_order_processing_system/blob/main/microservices-order-system/customer-service/src/main/java/com/orderprocessing/customer_service/customer/CustomerService.java): `microservices-order-system/customer-service/src/main/java/com/orderprocessing/customer_service/customer/CustomerService.java`
- [Customer Data](https://github.com/jajulanagamani/microservices_based_order_processing_system/blob/main/microservices-order-system/customer-service/src/main/java/com/orderprocessing/customer_service/customer/CustomerRepository.java): `microservices-order-system/customer-service/src/main/java/com/orderprocessing/customer_service/customer/CustomerRepository.java`

### Product Service

- [Product REST API](https://github.com/jajulanagamani/microservices_based_order_processing_system/blob/main/microservices-order-system/product-service/src/main/java/com/orderprocessing/product_service/product/ProductResource.java): `microservices-order-system/product-service/src/main/java/com/orderprocessing/product_service/product/ProductResource.java`
- [Product CRUD And Stock](https://github.com/jajulanagamani/microservices_based_order_processing_system/blob/main/microservices-order-system/product-service/src/main/java/com/orderprocessing/product_service/product/ProductService.java): `microservices-order-system/product-service/src/main/java/com/orderprocessing/product_service/product/ProductService.java`
- [Product Data](https://github.com/jajulanagamani/microservices_based_order_processing_system/blob/main/microservices-order-system/product-service/src/main/java/com/orderprocessing/product_service/product/ProductRepository.java): `microservices-order-system/product-service/src/main/java/com/orderprocessing/product_service/product/ProductRepository.java`

### Order Processing

- [Order REST API](https://github.com/jajulanagamani/microservices_based_order_processing_system/blob/main/microservices-order-system/order-service/src/main/java/com/orderprocessing/order_service/order/OrderResource.java): `microservices-order-system/order-service/src/main/java/com/orderprocessing/order_service/order/OrderResource.java`
- [Order Orchestration](https://github.com/jajulanagamani/microservices_based_order_processing_system/blob/main/microservices-order-system/order-service/src/main/java/com/orderprocessing/order_service/order/OrderService.java): `microservices-order-system/order-service/src/main/java/com/orderprocessing/order_service/order/OrderService.java`
- [Order Data](https://github.com/jajulanagamani/microservices_based_order_processing_system/blob/main/microservices-order-system/order-service/src/main/java/com/orderprocessing/order_service/order/OrderRepository.java): `microservices-order-system/order-service/src/main/java/com/orderprocessing/order_service/order/OrderRepository.java`

### Notification Service

- [Notification REST API](https://github.com/jajulanagamani/microservices_based_order_processing_system/blob/main/microservices-order-system/notification-service/src/main/java/com/orderprocessing/notification_service/notification/NotificationResource.java): `microservices-order-system/notification-service/src/main/java/com/orderprocessing/notification_service/notification/NotificationResource.java`
- [Notification CRUD](https://github.com/jajulanagamani/microservices_based_order_processing_system/blob/main/microservices-order-system/notification-service/src/main/java/com/orderprocessing/notification_service/notification/NotificationService.java): `microservices-order-system/notification-service/src/main/java/com/orderprocessing/notification_service/notification/NotificationService.java`
- [Notification Data](https://github.com/jajulanagamani/microservices_based_order_processing_system/blob/main/microservices-order-system/notification-service/src/main/java/com/orderprocessing/notification_service/notification/NotificationRepository.java): `microservices-order-system/notification-service/src/main/java/com/orderprocessing/notification_service/notification/NotificationRepository.java`

### Other components

- **Workspace User**

## Connections

- Workspace User → Workspace Shell: uses (evidence: `README.md`)
- Workspace Shell → Workspace Data: loads data (evidence: `frontend/src/App.jsx`)
- Workspace Shell → Dashboard Metrics: renders (evidence: `frontend/src/App.jsx`)
- Workspace Shell → Customer View: renders (evidence: `frontend/src/App.jsx`)
- Workspace Shell → Product View: renders (evidence: `frontend/src/App.jsx`)
- Workspace Shell → Order View: renders (evidence: `frontend/src/App.jsx`)
- Workspace Shell → Notification View: renders (evidence: `frontend/src/App.jsx`)
- Workspace Shell → Sidebar Navigation: renders (evidence: `frontend/src/App.jsx`)
- Dashboard Metrics → Dashboard Charts: renders (evidence: `frontend/src/components/Dashboard.jsx`)
- Workspace Data → API Clients: fetches lists (evidence: `frontend/src/hooks/useWorkspaceData.js`)
- API Clients → Customer REST API: HTTP requests (evidence: `README.md`)
- API Clients → Product REST API: HTTP requests (evidence: `README.md`)
- API Clients → Order REST API: HTTP requests (evidence: `README.md`)
- API Clients → Notification REST API: HTTP requests (evidence: `README.md`)
- Customer View → API Clients: CRUD requests (evidence: `frontend/src/components/Customers.jsx`)
- Product View → API Clients: CRUD requests (evidence: `frontend/src/components/Products.jsx`)
- Order View → API Clients: CRUD requests (evidence: `frontend/src/components/Orders.jsx`)
- Customer View → Shared UI: uses controls (evidence: `frontend/src/components/Customers.jsx`)
- Product View → Shared UI: uses controls (evidence: `frontend/src/components/Products.jsx`)
- Order View → Shared UI: uses controls (evidence: `frontend/src/components/Orders.jsx`)
- Dashboard Metrics → Shared UI: uses controls (evidence: `frontend/src/components/Dashboard.jsx`)
- Notification View → Shared UI: uses controls (evidence: `frontend/src/components/Notifications.jsx`)
- Customer REST API → Customer CRUD: delegates
- Customer CRUD → Customer Data: reads and writes (evidence: `microservices-order-system/customer-service/src/main/java/com/orderprocessing/customer_service/customer/CustomerService.java`)
- Product REST API → Product CRUD And Stock: delegates
- Product CRUD And Stock → Product Data: reads and writes (evidence: `microservices-order-system/product-service/src/main/java/com/orderprocessing/product_service/product/ProductService.java`)
- Order REST API → Order Orchestration: delegates
- Order Orchestration → Order Data: reads and writes (evidence: `microservices-order-system/order-service/src/main/java/com/orderprocessing/order_service/order/OrderService.java`)
- Notification REST API → Notification CRUD: delegates
- Notification CRUD → Notification Data: reads and writes (evidence: `microservices-order-system/notification-service/src/main/java/com/orderprocessing/notification_service/notification/NotificationService.java`)
- Order Orchestration → Customer REST API: checks customer (evidence: `microservices-order-system/order-service/src/main/java/com/orderprocessing/order_service/order/OrderService.java`)
- Order Orchestration → Product REST API: checks stock (evidence: `microservices-order-system/order-service/src/main/java/com/orderprocessing/order_service/order/OrderService.java`)
- Order Orchestration → Product REST API: adjusts stock (evidence: `microservices-order-system/order-service/src/main/java/com/orderprocessing/order_service/order/OrderService.java`)
- Order Orchestration → Notification REST API: creates notice (evidence: `microservices-order-system/order-service/src/main/java/com/orderprocessing/order_service/order/OrderService.java`)
