# daws-90s/roboshop-documentation architecture

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

- Interactive diagram: https://gitdiagram.com/daws-90s/roboshop-documentation
- Repository: https://github.com/daws-90s/roboshop-documentation

## Overview

Roboshop is a three-tier online shop: users reach a frontend reverse proxy, which routes requests to catalogue, user, cart, shipping, and payment services. The documented checkout-related stages include cart lookups by shipping and payment, user verification by payment, and payment publishing order messages for asynchronous dispatch. Catalogue and user use MongoDB, user and cart use Redis, and shipping uses MySQL. Relationships come from the README’s service and security-group tables; no implementation excerpts were provided.

Main entry points: [`03-frontend.MD`](https://github.com/daws-90s/roboshop-documentation/blob/main/03-frontend.MD) (Frontend), [`06-cart.MD`](https://github.com/daws-90s/roboshop-documentation/blob/main/06-cart.MD) (Cart), [`10-payment.MD`](https://github.com/daws-90s/roboshop-documentation/blob/main/10-payment.MD) (Payment), [`05-user.MD`](https://github.com/daws-90s/roboshop-documentation/blob/main/05-user.MD) (User)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["User Experience"]
  node_frontend["Frontend<br/>[03-frontend.MD]"]
end

subgraph group_services["Shop Services"]
  node_catalogue["Catalogue<br/>[02-catalogue.MD]"]
  node_user["User<br/>[05-user.MD]"]
  node_cart["Cart<br/>[06-cart.MD]"]
  node_shipping["Shipping<br/>[08-shipping.MD]"]
  node_payment["Payment<br/>[10-payment.MD]"]
  node_dispatch["Dispatch<br/>[11-dispatch.MD]"]
end

subgraph group_platform["Data and Messaging"]
  node_mongodb[("MongoDB<br/>[01-mongodb.MD]")]
  node_redis[("Redis<br/>[04-redis.MD]")]
  node_mysql[("MySQL<br/>[07-mysql.MD]")]
  node_rabbitmq["RabbitMQ<br/>[09-rabbitmq.MD]"]
end

node_customer(("Shopper"))

node_customer -->|"browses"| node_frontend
node_frontend -->|"proxies requests"| node_catalogue
node_frontend -->|"proxies requests"| node_user
node_frontend -->|"proxies requests"| node_cart
node_frontend -->|"proxies requests"| node_shipping
node_frontend -->|"proxies requests"| node_payment
node_cart -->|"looks up items"| node_catalogue
node_payment -->|"verifies user"| node_user
node_shipping -->|"looks up cart"| node_cart
node_payment -->|"looks up cart"| node_cart
node_catalogue -->|"reads products"| node_mongodb
node_user -->|"reads and writes accounts"| node_mongodb
node_user -->|"caches sessions"| node_redis
node_cart -->|"caches cart data"| node_redis
node_shipping -->|"reads city data"| node_mysql
node_payment -->|"publishes orders"| node_rabbitmq
node_dispatch -->|"consumes orders"| node_rabbitmq

click node_frontend "https://github.com/daws-90s/roboshop-documentation/blob/main/03-frontend.MD"
click node_catalogue "https://github.com/daws-90s/roboshop-documentation/blob/main/02-catalogue.MD"
click node_user "https://github.com/daws-90s/roboshop-documentation/blob/main/05-user.MD"
click node_cart "https://github.com/daws-90s/roboshop-documentation/blob/main/06-cart.MD"
click node_shipping "https://github.com/daws-90s/roboshop-documentation/blob/main/08-shipping.MD"
click node_payment "https://github.com/daws-90s/roboshop-documentation/blob/main/10-payment.MD"
click node_dispatch "https://github.com/daws-90s/roboshop-documentation/blob/main/11-dispatch.MD"
click node_mongodb "https://github.com/daws-90s/roboshop-documentation/blob/main/01-mongodb.MD"
click node_redis "https://github.com/daws-90s/roboshop-documentation/blob/main/04-redis.MD"
click node_mysql "https://github.com/daws-90s/roboshop-documentation/blob/main/07-mysql.MD"
click node_rabbitmq "https://github.com/daws-90s/roboshop-documentation/blob/main/09-rabbitmq.MD"

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_frontend toneBlue
class node_catalogue,node_user,node_cart,node_shipping,node_payment,node_dispatch toneAmber
class node_mongodb,node_redis,node_mysql,node_rabbitmq toneMint
class node_customer toneIndigo
```

## Components

### User Experience

- [Frontend](https://github.com/daws-90s/roboshop-documentation/blob/main/03-frontend.MD): `03-frontend.MD`

### Shop Services

- [Catalogue](https://github.com/daws-90s/roboshop-documentation/blob/main/02-catalogue.MD): `02-catalogue.MD`
- [User](https://github.com/daws-90s/roboshop-documentation/blob/main/05-user.MD): `05-user.MD`
- [Cart](https://github.com/daws-90s/roboshop-documentation/blob/main/06-cart.MD): `06-cart.MD`
- [Shipping](https://github.com/daws-90s/roboshop-documentation/blob/main/08-shipping.MD): `08-shipping.MD`
- [Payment](https://github.com/daws-90s/roboshop-documentation/blob/main/10-payment.MD): `10-payment.MD`
- [Dispatch](https://github.com/daws-90s/roboshop-documentation/blob/main/11-dispatch.MD): `11-dispatch.MD`

### Data and Messaging

- [MongoDB](https://github.com/daws-90s/roboshop-documentation/blob/main/01-mongodb.MD): `01-mongodb.MD`
- [Redis](https://github.com/daws-90s/roboshop-documentation/blob/main/04-redis.MD): `04-redis.MD`
- [MySQL](https://github.com/daws-90s/roboshop-documentation/blob/main/07-mysql.MD): `07-mysql.MD`
- [RabbitMQ](https://github.com/daws-90s/roboshop-documentation/blob/main/09-rabbitmq.MD): `09-rabbitmq.MD`

### Other components

- **Shopper**

## Connections

- Shopper → Frontend: browses (evidence: `readme.MD`)
- Frontend → Catalogue: proxies requests (evidence: `readme.MD`)
- Frontend → User: proxies requests (evidence: `readme.MD`)
- Frontend → Cart: proxies requests (evidence: `readme.MD`)
- Frontend → Shipping: proxies requests (evidence: `readme.MD`)
- Frontend → Payment: proxies requests (evidence: `readme.MD`)
- Cart → Catalogue: looks up items (evidence: `readme.MD`)
- Payment → User: verifies user (evidence: `readme.MD`)
- Shipping → Cart: looks up cart (evidence: `readme.MD`)
- Payment → Cart: looks up cart (evidence: `readme.MD`)
- Catalogue → MongoDB: reads products (evidence: `readme.MD`)
- User → MongoDB: reads and writes accounts (evidence: `readme.MD`)
- User → Redis: caches sessions (evidence: `readme.MD`)
- Cart → Redis: caches cart data (evidence: `readme.MD`)
- Shipping → MySQL: reads city data (evidence: `readme.MD`)
- Payment → RabbitMQ: publishes orders (evidence: `readme.MD`)
- Dispatch → RabbitMQ: consumes orders (evidence: `readme.MD`)
