# abhinavjalluri/e-commerce architecture

> Architecture diagram of the GitHub repository abhinavjalluri/e-commerce, 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/abhinavjalluri/e-commerce
- Repository: https://github.com/abhinavjalluri/e-commerce

## Overview

This repository is a Spring Boot e-commerce application split into gateway, discovery, identity, commerce, review, and notification services. The documented user-facing path is a request entering the API Gateway and being routed to a microservice; the README identifies order, inventory, user, and review capabilities but does not specify their internal call sequence. It also documents Eureka discovery, JWT security, Kafka messaging, and observability. No source excerpts were provided, so service-to-service and persistence relationships beyond the README are omitted or marked unverified.

Main entry points: [`api-gateway/src/main/java/com/example/apigateway`](https://github.com/abhinavjalluri/e-commerce/tree/main/api-gateway/src/main/java/com/example/apigateway) (API Gateway), [`eureka-service/src/main/java/com/example/eurekaservice`](https://github.com/abhinavjalluri/e-commerce/tree/main/eureka-service/src/main/java/com/example/eurekaservice) (Eureka Discovery), [`auth-service/src/main/java/com/example/authservice`](https://github.com/abhinavjalluri/e-commerce/tree/main/auth-service/src/main/java/com/example/authservice) (Authentication), [`order-service/src/main/java/com/example/orderservice`](https://github.com/abhinavjalluri/e-commerce/tree/main/order-service/src/main/java/com/example/orderservice) (Order Processing)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_edge["Edge and Discovery"]
  node_gateway["API Gateway"]
  node_eureka["Eureka Discovery"]
end

subgraph group_identity["Identity Services"]
  node_users["User Management"]
  node_auth["Authentication"]
end

subgraph group_commerce["Commerce Services"]
  node_inventory["Product Inventory"]
  node_orders["Order Processing"]
  node_reviews["Reviews and Ratings"]
  node_notifications["Notifications"]
end

subgraph group_platform["Messaging and Observability"]
  node_postgres[("PostgreSQL")]
  node_kafka["Kafka"]
  node_observability["Observability Stack"]
end

node_customer(("Customer"))

node_customer -->|"sends requests"| node_gateway
node_gateway -->|"routes requests"| node_users
node_gateway -->|"routes requests"| node_auth
node_gateway -->|"routes requests"| node_inventory
node_gateway -->|"routes requests"| node_orders
node_gateway -->|"routes requests"| node_reviews
node_gateway -->|"routes requests"| node_notifications
node_eureka -.->|"supports discovery"| node_gateway
node_eureka -.->|"supports discovery"| node_users
node_eureka -.->|"supports discovery"| node_auth
node_eureka -.->|"supports discovery"| node_inventory
node_eureka -.->|"supports discovery"| node_orders
node_eureka -.->|"supports discovery"| node_reviews
node_auth -.->|"authenticates with JWT"| node_customer
node_orders -.->|"uses messaging"| node_kafka
node_kafka -.->|"supports notifications"| node_notifications

click node_gateway "https://github.com/abhinavjalluri/e-commerce/tree/main/api-gateway/src/main/java/com/example/apigateway"
click node_eureka "https://github.com/abhinavjalluri/e-commerce/tree/main/eureka-service/src/main/java/com/example/eurekaservice"
click node_users "https://github.com/abhinavjalluri/e-commerce/tree/main/user-service/src/main/java/com/example/userservice"
click node_auth "https://github.com/abhinavjalluri/e-commerce/tree/main/auth-service/src/main/java/com/example/authservice"
click node_inventory "https://github.com/abhinavjalluri/e-commerce/tree/main/inventory-service/src/main/java/com/example/inventoryservice"
click node_orders "https://github.com/abhinavjalluri/e-commerce/tree/main/order-service/src/main/java/com/example/orderservice"
click node_reviews "https://github.com/abhinavjalluri/e-commerce/tree/main/reviews-service/src/main/java/com/example/reviewsservice"
click node_notifications "https://github.com/abhinavjalluri/e-commerce/tree/main/notification-service/src/main/java/com/example/notificationservice"
click node_observability "https://github.com/abhinavjalluri/e-commerce/tree/main/deployment"

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_gateway,node_eureka toneBlue
class node_users,node_auth toneAmber
class node_inventory,node_orders,node_reviews,node_notifications toneMint
class node_postgres,node_kafka,node_observability toneRose
class node_customer toneIndigo
```

## Components

### Edge and Discovery

- [API Gateway](https://github.com/abhinavjalluri/e-commerce/tree/main/api-gateway/src/main/java/com/example/apigateway): `api-gateway/src/main/java/com/example/apigateway`
- [Eureka Discovery](https://github.com/abhinavjalluri/e-commerce/tree/main/eureka-service/src/main/java/com/example/eurekaservice): `eureka-service/src/main/java/com/example/eurekaservice`

### Identity Services

- [User Management](https://github.com/abhinavjalluri/e-commerce/tree/main/user-service/src/main/java/com/example/userservice): `user-service/src/main/java/com/example/userservice`
- [Authentication](https://github.com/abhinavjalluri/e-commerce/tree/main/auth-service/src/main/java/com/example/authservice): `auth-service/src/main/java/com/example/authservice`

### Commerce Services

- [Product Inventory](https://github.com/abhinavjalluri/e-commerce/tree/main/inventory-service/src/main/java/com/example/inventoryservice): `inventory-service/src/main/java/com/example/inventoryservice`
- [Order Processing](https://github.com/abhinavjalluri/e-commerce/tree/main/order-service/src/main/java/com/example/orderservice): `order-service/src/main/java/com/example/orderservice`
- [Reviews and Ratings](https://github.com/abhinavjalluri/e-commerce/tree/main/reviews-service/src/main/java/com/example/reviewsservice): `reviews-service/src/main/java/com/example/reviewsservice`
- [Notifications](https://github.com/abhinavjalluri/e-commerce/tree/main/notification-service/src/main/java/com/example/notificationservice): `notification-service/src/main/java/com/example/notificationservice`

### Messaging and Observability

- **PostgreSQL**
- **Kafka**
- [Observability Stack](https://github.com/abhinavjalluri/e-commerce/tree/main/deployment): `deployment`

### Other components

- **Customer**

## Connections

- Customer → API Gateway: sends requests (evidence: `README.md`)
- API Gateway → User Management: routes requests (evidence: `README.md`)
- API Gateway → Authentication: routes requests (evidence: `README.md`)
- API Gateway → Product Inventory: routes requests (evidence: `README.md`)
- API Gateway → Order Processing: routes requests (evidence: `README.md`)
- API Gateway → Reviews and Ratings: routes requests (evidence: `README.md`)
- API Gateway → Notifications: routes requests (evidence: `README.md`)
- Eureka Discovery → API Gateway: supports discovery (evidence: `README.md`)
- Eureka Discovery → User Management: supports discovery (evidence: `README.md`)
- Eureka Discovery → Authentication: supports discovery (evidence: `README.md`)
- Eureka Discovery → Product Inventory: supports discovery (evidence: `README.md`)
- Eureka Discovery → Order Processing: supports discovery (evidence: `README.md`)
- Eureka Discovery → Reviews and Ratings: supports discovery (evidence: `README.md`)
- Authentication → Customer: authenticates with JWT (evidence: `README.md`)
- Order Processing → Kafka: uses messaging (evidence: `README.md`)
- Kafka → Notifications: supports notifications (evidence: `README.md`)
