# maro-z/restful-booker-performance-testing architecture

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

- Interactive diagram: https://gitdiagram.com/maro-z/restful-booker-performance-testing
- Repository: https://github.com/maro-z/restful-booker-performance-testing

## Overview

This repository is a JMeter performance test plan for the Restful Booker API. Its principal workflow authenticates, creates a booking from CSV data, retrieves it, and conditionally deletes it; the plan also applies pacing and a response-time assertion. The graph reflects only relationships documented in the README: no JMX source excerpt was provided to verify implementation details.

Main entry points: [`final4.jmx`](https://github.com/maro-z/restful-booker-performance-testing/blob/main/final4.jmx) (Test plan), [`booking_guests.csv`](https://github.com/maro-z/restful-booker-performance-testing/blob/main/booking_guests.csv) (Guest CSV data)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_scenario["Test scenario"]
  node_plan["Test plan<br/>[final4.jmx]"]
  node_auth["Authenticate<br/>[final4.jmx]"]
  node_create["Create booking<br/>[final4.jmx]"]
  node_csv["Guest CSV data<br/>[booking_guests.csv]"]
  node_retrieve["Retrieve booking<br/>[final4.jmx]"]
  node_delete["Conditional delete<br/>[final4.jmx]"]
end

subgraph group_controls["Test controls"]
  node_throughput["Throughput control<br/>[final4.jmx]"]
  node_timer["Pacing timer<br/>[final4.jmx]"]
  node_assertion["Duration assertion<br/>[final4.jmx]"]
end

node_jmeter(("JMeter runner"))
node_api{{"Restful Booker API"}}

node_jmeter -->|"runs"| node_plan
node_plan -->|"executes first"| node_auth
node_plan -->|"executes next"| node_create
node_plan -->|"executes next"| node_retrieve
node_plan -->|"executes next"| node_delete
node_auth -->|"POST /auth"| node_api
node_auth -->|"passes token"| node_create
node_auth -->|"passes token"| node_retrieve
node_auth -->|"passes token"| node_delete
node_csv -->|"provides names"| node_create
node_create -->|"POST /booking"| node_api
node_create -->|"passes booking ID"| node_retrieve
node_create -->|"passes booking ID"| node_delete
node_retrieve -->|"GET booking"| node_api
node_throughput -->|"limits to 25%"| node_delete
node_delete -->|"DELETE booking"| node_api
node_timer -->|"paces requests"| node_plan
node_assertion -->|"checks duration"| node_plan

click node_plan "https://github.com/maro-z/restful-booker-performance-testing/blob/main/final4.jmx"
click node_auth "https://github.com/maro-z/restful-booker-performance-testing/blob/main/final4.jmx"
click node_create "https://github.com/maro-z/restful-booker-performance-testing/blob/main/final4.jmx"
click node_csv "https://github.com/maro-z/restful-booker-performance-testing/blob/main/booking_guests.csv"
click node_retrieve "https://github.com/maro-z/restful-booker-performance-testing/blob/main/final4.jmx"
click node_delete "https://github.com/maro-z/restful-booker-performance-testing/blob/main/final4.jmx"
click node_throughput "https://github.com/maro-z/restful-booker-performance-testing/blob/main/final4.jmx"
click node_timer "https://github.com/maro-z/restful-booker-performance-testing/blob/main/final4.jmx"
click node_assertion "https://github.com/maro-z/restful-booker-performance-testing/blob/main/final4.jmx"

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_plan,node_auth,node_create,node_csv,node_retrieve,node_delete toneBlue
class node_throughput,node_timer,node_assertion toneAmber
class node_jmeter toneIndigo
class node_api toneMint
```

## Components

### Test scenario

- [Test plan](https://github.com/maro-z/restful-booker-performance-testing/blob/main/final4.jmx): `final4.jmx`
- [Authenticate](https://github.com/maro-z/restful-booker-performance-testing/blob/main/final4.jmx): `final4.jmx`
- [Create booking](https://github.com/maro-z/restful-booker-performance-testing/blob/main/final4.jmx): `final4.jmx`
- [Guest CSV data](https://github.com/maro-z/restful-booker-performance-testing/blob/main/booking_guests.csv): `booking_guests.csv`
- [Retrieve booking](https://github.com/maro-z/restful-booker-performance-testing/blob/main/final4.jmx): `final4.jmx`
- [Conditional delete](https://github.com/maro-z/restful-booker-performance-testing/blob/main/final4.jmx): `final4.jmx`

### Test controls

- [Throughput control](https://github.com/maro-z/restful-booker-performance-testing/blob/main/final4.jmx): `final4.jmx`
- [Pacing timer](https://github.com/maro-z/restful-booker-performance-testing/blob/main/final4.jmx): `final4.jmx`
- [Duration assertion](https://github.com/maro-z/restful-booker-performance-testing/blob/main/final4.jmx): `final4.jmx`

### Other components

- **JMeter runner**
- **Restful Booker API**

## Connections

- JMeter runner → Test plan: runs (evidence: `README.md`)
- Test plan → Authenticate: executes first (evidence: `README.md`)
- Test plan → Create booking: executes next (evidence: `README.md`)
- Test plan → Retrieve booking: executes next (evidence: `README.md`)
- Test plan → Conditional delete: executes next (evidence: `README.md`)
- Authenticate → Restful Booker API: POST /auth (evidence: `README.md`)
- Authenticate → Create booking: passes token (evidence: `README.md`)
- Authenticate → Retrieve booking: passes token (evidence: `README.md`)
- Authenticate → Conditional delete: passes token (evidence: `README.md`)
- Guest CSV data → Create booking: provides names (evidence: `README.md`)
- Create booking → Restful Booker API: POST /booking (evidence: `README.md`)
- Create booking → Retrieve booking: passes booking ID (evidence: `README.md`)
- Create booking → Conditional delete: passes booking ID (evidence: `README.md`)
- Retrieve booking → Restful Booker API: GET booking (evidence: `README.md`)
- Throughput control → Conditional delete: limits to 25% (evidence: `README.md`)
- Conditional delete → Restful Booker API: DELETE booking (evidence: `README.md`)
- Pacing timer → Test plan: paces requests (evidence: `README.md`)
- Duration assertion → Test plan: checks duration (evidence: `README.md`)
