Requests per second between the services of a web shop
Requests per second between the services of a shop. Every connection has a weight; its line is as much stronger as it carries more, from 1 px for nothing to 5 px for the heaviest, while the arrowheads keep their size. The description names the heaviest connection and the table gives every weight. The main path is given by its ends only, { "from": "web", "to": "pay" }, and stays in the accent color. Illustrative values.
Requests per second between the services of a web shop
examples/request-volume.json{
"schemaVersion": 1,
"type": "architecture",
"title": "Requests per second between the services of a web shop",
"source": "Load test, peak hour",
"width": 820,
"height": 580,
"architecture": {
"boundaries": [
{
"id": "cluster",
"label": "Cluster"
}
],
"components": [
{
"id": "web",
"label": "Web shop",
"kind": "frontend"
},
{
"id": "gateway",
"label": "API gateway",
"in": "cluster"
},
{
"id": "catalog",
"label": "Catalog",
"in": "cluster"
},
{
"id": "cart",
"label": "Cart",
"in": "cluster"
},
{
"id": "checkout",
"label": "Checkout",
"in": "cluster"
},
{
"id": "search",
"label": "Search index",
"kind": "database",
"in": "cluster"
},
{
"id": "db",
"label": "Orders",
"kind": "database",
"in": "cluster"
},
{
"id": "pay",
"label": "Payment provider",
"kind": "external"
}
],
"connections": [
{
"from": "web",
"to": "gateway",
"label": "1,200/s",
"weight": 1200
},
{
"from": "gateway",
"to": "catalog",
"label": "820/s",
"weight": 820
},
{
"from": "gateway",
"to": "cart",
"label": "310/s",
"weight": 310
},
{
"from": "gateway",
"to": "checkout",
"label": "70/s",
"weight": 70
},
{
"from": "catalog",
"to": "search",
"label": "640/s",
"weight": 640
},
{
"from": "cart",
"to": "db",
"label": "150/s",
"weight": 150
},
{
"from": "checkout",
"to": "db",
"label": "60/s",
"weight": 60
},
{
"from": "checkout",
"to": "pay",
"label": "35/s",
"weight": 35
}
],
"mainPath": {
"from": "web",
"to": "pay"
}
}
}Focus
Source: Load test, peak hour
Show chart data
| Component | Kind | Boundary | Connects to |
|---|---|---|---|
| Web shop | frontend | API gateway (1,200/s, weight 1200) | |
| API gateway | service | Cluster | Catalog (820/s, weight 820), Cart (310/s, weight 310), Checkout (70/s, weight 70) |
| Catalog | service | Cluster | Search index (640/s, weight 640) |
| Cart | service | Cluster | Orders (150/s, weight 150) |
| Checkout | service | Cluster | Orders (60/s, weight 60), Payment provider (35/s, weight 35) |
| Search index | database | Cluster | |
| Orders | database | Cluster | |
| Payment provider | external system |