# daws-92s/roboshop-documentation architecture

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

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

## Overview

RoboShop is a three-tier robot store, and this repository documents its deployment and contains packaged application artifacts. The principal workflow is a customer using the frontend to browse products and check out; backend services coordinate shipping, cart, payment, user/order handling, and dispatch. The graph includes documented storage and messaging integrations. No source excerpts were provided, so service-to-service relationships are based on the README’s security-group descriptions and request-tracing overview, not inspected implementation code.

Main entry points: [`roboshop.conf`](https://github.com/daws-92s/roboshop-documentation/blob/main/roboshop.conf) (Nginx proxy), [`artifacts/cart-v4.zip`](https://github.com/daws-92s/roboshop-documentation/blob/main/artifacts/cart-v4.zip) (Cart), [`artifacts/payment-v4.zip`](https://github.com/daws-92s/roboshop-documentation/blob/main/artifacts/payment-v4.zip) (Payment), [`artifacts/user-v4.zip`](https://github.com/daws-92s/roboshop-documentation/blob/main/artifacts/user-v4.zip) (User)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["Storefront"]
  node_frontend["Frontend<br/>[frontend-v4.zip]"]
  node_nginx["Nginx proxy<br/>[roboshop.conf]"]
end

subgraph group_services["Backend services"]
  node_catalogue["Catalogue<br/>[catalogue-v4.zip]"]
  node_user["User<br/>[user-v4.zip]"]
  node_cart["Cart<br/>[cart-v4.zip]"]
  node_shipping["Shipping<br/>[shipping-v4.zip]"]
  node_payment["Payment<br/>[payment-v4.zip]"]
  node_dispatch["Dispatch<br/>[dispatch-v4.zip]"]
end

subgraph group_data["Data stores"]
  node_mongodb[("MongoDB<br/>[01-mongodb.md]")]
  node_redis[("Redis<br/>[02-redis.md]")]
  node_mysql[("MySQL<br/>[03-mysql.md]")]
end

subgraph group_messaging["Order messaging"]
  node_rabbitmq["RabbitMQ<br/>[04-rabbitmq.md]"]
end

node_customer(("Customer"))

node_customer -->|"uses"| node_frontend
node_frontend -->|"served through"| node_nginx
node_nginx -->|"proxies requests"| node_catalogue
node_nginx -->|"proxies requests"| node_user
node_nginx -->|"proxies requests"| node_cart
node_nginx -->|"proxies requests"| node_shipping
node_nginx -->|"proxies requests"| node_payment
node_cart -->|"checks price and stock"| node_catalogue
node_catalogue -->|"reads products"| node_mongodb
node_user -->|"reads and writes accounts and orders"| node_mongodb
node_user -->|"uses guest id counter"| node_redis
node_cart -->|"stores carts"| node_redis
node_shipping -->|"reads shipping data"| node_mysql
node_shipping -->|"adds shipping cost"| node_cart
node_payment -->|"checks user and saves order"| node_user
node_payment -->|"empties cart"| node_cart
node_payment -->|"publishes orders"| node_rabbitmq
node_dispatch -->|"consumes orders"| node_rabbitmq

click node_frontend "https://github.com/daws-92s/roboshop-documentation/blob/main/artifacts/frontend-v4.zip"
click node_nginx "https://github.com/daws-92s/roboshop-documentation/blob/main/roboshop.conf"
click node_catalogue "https://github.com/daws-92s/roboshop-documentation/blob/main/artifacts/catalogue-v4.zip"
click node_user "https://github.com/daws-92s/roboshop-documentation/blob/main/artifacts/user-v4.zip"
click node_cart "https://github.com/daws-92s/roboshop-documentation/blob/main/artifacts/cart-v4.zip"
click node_shipping "https://github.com/daws-92s/roboshop-documentation/blob/main/artifacts/shipping-v4.zip"
click node_payment "https://github.com/daws-92s/roboshop-documentation/blob/main/artifacts/payment-v4.zip"
click node_dispatch "https://github.com/daws-92s/roboshop-documentation/blob/main/artifacts/dispatch-v4.zip"
click node_mongodb "https://github.com/daws-92s/roboshop-documentation/blob/main/01-mongodb.md"
click node_redis "https://github.com/daws-92s/roboshop-documentation/blob/main/02-redis.md"
click node_mysql "https://github.com/daws-92s/roboshop-documentation/blob/main/03-mysql.md"
click node_rabbitmq "https://github.com/daws-92s/roboshop-documentation/blob/main/04-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,node_nginx toneBlue
class node_catalogue,node_user,node_cart,node_shipping,node_payment,node_dispatch toneAmber
class node_mongodb,node_redis,node_mysql toneMint
class node_rabbitmq toneRose
class node_customer toneIndigo
```

## Components

### Storefront

- [Frontend](https://github.com/daws-92s/roboshop-documentation/blob/main/artifacts/frontend-v4.zip): `artifacts/frontend-v4.zip`
- [Nginx proxy](https://github.com/daws-92s/roboshop-documentation/blob/main/roboshop.conf): `roboshop.conf`

### Backend services

- [Catalogue](https://github.com/daws-92s/roboshop-documentation/blob/main/artifacts/catalogue-v4.zip): `artifacts/catalogue-v4.zip`
- [User](https://github.com/daws-92s/roboshop-documentation/blob/main/artifacts/user-v4.zip): `artifacts/user-v4.zip`
- [Cart](https://github.com/daws-92s/roboshop-documentation/blob/main/artifacts/cart-v4.zip): `artifacts/cart-v4.zip`
- [Shipping](https://github.com/daws-92s/roboshop-documentation/blob/main/artifacts/shipping-v4.zip): `artifacts/shipping-v4.zip`
- [Payment](https://github.com/daws-92s/roboshop-documentation/blob/main/artifacts/payment-v4.zip): `artifacts/payment-v4.zip`
- [Dispatch](https://github.com/daws-92s/roboshop-documentation/blob/main/artifacts/dispatch-v4.zip): `artifacts/dispatch-v4.zip`

### Data stores

- [MongoDB](https://github.com/daws-92s/roboshop-documentation/blob/main/01-mongodb.md): `01-mongodb.md`
- [Redis](https://github.com/daws-92s/roboshop-documentation/blob/main/02-redis.md): `02-redis.md`
- [MySQL](https://github.com/daws-92s/roboshop-documentation/blob/main/03-mysql.md): `03-mysql.md`

### Order messaging

- [RabbitMQ](https://github.com/daws-92s/roboshop-documentation/blob/main/04-rabbitmq.md): `04-rabbitmq.md`

### Other components

- **Customer**

## Connections

- Customer → Frontend: uses (evidence: `readme.md`)
- Frontend → Nginx proxy: served through (evidence: `readme.md`)
- Nginx proxy → Catalogue: proxies requests (evidence: `readme.md`)
- Nginx proxy → User: proxies requests (evidence: `readme.md`)
- Nginx proxy → Cart: proxies requests (evidence: `readme.md`)
- Nginx proxy → Shipping: proxies requests (evidence: `readme.md`)
- Nginx proxy → Payment: proxies requests (evidence: `readme.md`)
- Cart → Catalogue: checks price and stock (evidence: `readme.md`)
- Catalogue → MongoDB: reads products (evidence: `readme.md`)
- User → MongoDB: reads and writes accounts and orders (evidence: `readme.md`)
- User → Redis: uses guest id counter (evidence: `readme.md`)
- Cart → Redis: stores carts (evidence: `readme.md`)
- Shipping → MySQL: reads shipping data (evidence: `readme.md`)
- Shipping → Cart: adds shipping cost (evidence: `readme.md`)
- Payment → User: checks user and saves order (evidence: `readme.md`)
- Payment → Cart: empties cart (evidence: `readme.md`)
- Payment → RabbitMQ: publishes orders (evidence: `readme.md`)
- Dispatch → RabbitMQ: consumes orders (evidence: `readme.md`)
