# tuntunhlaing/affable-bean-microservice architecture

> Architecture diagram of the GitHub repository tuntunhlaing/affable-bean-microservice, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-09-30). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/tuntunhlaing/affable-bean-microservice
- Repository: https://github.com/tuntunhlaing/affable-bean-microservice

## Overview

This repository is a distributed Affable Bean shopping application: a browser-facing UI sits alongside product, payment, transportation, and authentication services, with a gateway and Eureka server. The intended user journey is to browse products, use the cart and checkout, then obtain payment and transportation-related results. The file tree supports these service responsibilities, but no README or relevant application-source excerpts were provided, so inter-service routing and the precise checkout sequence are shown as unverified rather than asserted.

Main entry points: [`gateway-service/src/main/java/com/example/gatewayservice`](https://github.com/tuntunhlaing/affable-bean-microservice/tree/master/gateway-service/src/main/java/com/example/gatewayservice) (API Gateway), [`eureka-server/src/main/java/com/example/eurekaserver`](https://github.com/tuntunhlaing/affable-bean-microservice/tree/master/eureka-server/src/main/java/com/example/eurekaserver) (Service Registry), [`affable-bean-ui/src/main/java/com/example/affablebeanui/controller`](https://github.com/tuntunhlaing/affable-bean-microservice/tree/master/affable-bean-ui/src/main/java/com/example/affablebeanui/controller) (Shopping UI), [`affablebean-backend/src/main/java/com/example/affablebeanbackend`](https://github.com/tuntunhlaing/affable-bean-microservice/tree/master/affablebean-backend/src/main/java/com/example/affablebeanbackend) (Product Catalog)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_storefront["Storefront"]
  node_webui["Shopping UI"]
end

subgraph group_commerce["Commerce Services"]
  node_product["Product Catalog"]
  node_payment["Payment Service"]
  node_transport["Transportation"]
end

subgraph group_platform["Service Platform"]
  node_gateway["API Gateway"]
  node_eureka["Service Registry"]
end

subgraph group_identity["Identity"]
  node_auth["Authentication"]
end

node_shopper(("Shopper"))

node_shopper -.->|"uses"| node_webui
node_webui -.->|"requests routes"| node_gateway
node_gateway -.->|"routes catalog"| node_product
node_gateway -.->|"routes payment"| node_payment
node_gateway -.->|"routes transport"| node_transport
node_gateway -.->|"routes auth"| node_auth
node_product -.->|"registers with"| node_eureka
node_payment -.->|"registers with"| node_eureka
node_transport -.->|"registers with"| node_eureka
node_gateway -.->|"discovers services"| node_eureka

click node_webui "https://github.com/tuntunhlaing/affable-bean-microservice/tree/master/affable-bean-ui/src/main/java/com/example/affablebeanui/controller"
click node_product "https://github.com/tuntunhlaing/affable-bean-microservice/tree/master/affablebean-backend/src/main/java/com/example/affablebeanbackend"
click node_payment "https://github.com/tuntunhlaing/affable-bean-microservice/tree/master/payment-service/src/main/java/com/example/paymentservice"
click node_transport "https://github.com/tuntunhlaing/affable-bean-microservice/tree/master/transportation-service/src/main/java/com/example/transportationservice"
click node_gateway "https://github.com/tuntunhlaing/affable-bean-microservice/tree/master/gateway-service/src/main/java/com/example/gatewayservice"
click node_eureka "https://github.com/tuntunhlaing/affable-bean-microservice/tree/master/eureka-server/src/main/java/com/example/eurekaserver"
click node_auth "https://github.com/tuntunhlaing/affable-bean-microservice/tree/master/api-security/src/main/java/com/example/apisecurity"

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 toneBlue
class node_product,node_payment,node_transport toneAmber
class node_gateway,node_eureka toneMint
class node_auth toneRose
class node_shopper toneIndigo
```

## Components

### Storefront

- [Shopping UI](https://github.com/tuntunhlaing/affable-bean-microservice/tree/master/affable-bean-ui/src/main/java/com/example/affablebeanui/controller): `affable-bean-ui/src/main/java/com/example/affablebeanui/controller`

### Commerce Services

- [Product Catalog](https://github.com/tuntunhlaing/affable-bean-microservice/tree/master/affablebean-backend/src/main/java/com/example/affablebeanbackend): `affablebean-backend/src/main/java/com/example/affablebeanbackend`
- [Payment Service](https://github.com/tuntunhlaing/affable-bean-microservice/tree/master/payment-service/src/main/java/com/example/paymentservice): `payment-service/src/main/java/com/example/paymentservice`
- [Transportation](https://github.com/tuntunhlaing/affable-bean-microservice/tree/master/transportation-service/src/main/java/com/example/transportationservice): `transportation-service/src/main/java/com/example/transportationservice`

### Service Platform

- [API Gateway](https://github.com/tuntunhlaing/affable-bean-microservice/tree/master/gateway-service/src/main/java/com/example/gatewayservice): `gateway-service/src/main/java/com/example/gatewayservice`
- [Service Registry](https://github.com/tuntunhlaing/affable-bean-microservice/tree/master/eureka-server/src/main/java/com/example/eurekaserver): `eureka-server/src/main/java/com/example/eurekaserver`

### Identity

- [Authentication](https://github.com/tuntunhlaing/affable-bean-microservice/tree/master/api-security/src/main/java/com/example/apisecurity): `api-security/src/main/java/com/example/apisecurity`

### Other components

- **Shopper**

## Connections

- Shopper → Shopping UI: uses
- Shopping UI → API Gateway: requests routes
- API Gateway → Product Catalog: routes catalog
- API Gateway → Payment Service: routes payment
- API Gateway → Transportation: routes transport
- API Gateway → Authentication: routes auth
- Product Catalog → Service Registry: registers with
- Payment Service → Service Registry: registers with
- Transportation → Service Registry: registers with
- API Gateway → Service Registry: discovers services
