# Code generated by ayida from gateway.ayida.hcl, main.ayida.hcl. DO NOT EDIT. direction: down vars: { d2-config: { layout-engine: elk } } classes: { kind-component: {} kind-container: {} kind-system: {} shape-database: {} tag-gateway: {} } "outside": "outside this view" { shape: oval style: { fill: transparent stroke: "#999999" font-color: "#666666" stroke-dash: 4 } } "system__api_5fgateway": "API Gateway\nSYSTEM · api_gateway\n\nCentral entry point for all client requests" { shape: rectangle class: [kind-system; tag-gateway] style: { fill: "#1E4F8F" stroke: "#183F73" font-color: "#FFFFFF" border-radius: 6 } "container__gateway": "Gateway\nCONTAINER · Kong Gateway, Lua plugins · gateway\n\nRoutes, authenticates and rate-limits requests" { shape: rectangle class: [kind-container] style: { fill: "#2D66AE" stroke: "#245390" font-color: "#FFFFFF" border-radius: 6 } "component__auth": "Auth middleware\nCOMPONENT · auth\n\nValidates JWT tokens" { shape: rectangle class: [kind-component] style: { fill: "#93C5FD" stroke: "#60A5FA" font-color: "#0F1117" border-radius: 6 } } "component__limiter": "Rate limiter\nCOMPONENT · limiter\n\nPer-client limits and circuit breaking" { shape: rectangle class: [kind-component] style: { fill: "#93C5FD" stroke: "#60A5FA" font-color: "#0F1117" border-radius: 6 } } "component__router": "Router\nCOMPONENT · router\n\nRoutes on path and headers" { shape: rectangle class: [kind-component] style: { fill: "#93C5FD" stroke: "#60A5FA" font-color: "#0F1117" border-radius: 6 } } } "container__rate_5flimit_5fstore": "Rate-limit store\nCONTAINER · Redis · rate_limit_store\n\nPer-client rate-limit counters" { shape: rectangle class: [kind-container; shape-database] style: { fill: "#2D66AE" stroke: "#245390" font-color: "#FFFFFF" border-radius: 6 } } } "system__api_5fgateway"."container__gateway"."component__auth" -> "system__api_5fgateway"."container__gateway"."component__router": "Validated requests" { style.stroke: "#737373" style.font-color: "#3D3D3D" } "system__api_5fgateway"."container__gateway"."component__limiter" -> "system__api_5fgateway"."container__rate_5flimit_5fstore": "Reads and increments counters" { style.stroke: "#737373" style.font-color: "#3D3D3D" } "system__api_5fgateway"."container__gateway"."component__limiter" -> "outside": "3 relationships\ngRPC" { style.stroke: "#737373" style.font-color: "#3D3D3D" style.stroke-dash: 4 } "system__api_5fgateway"."container__gateway"."component__router" -> "system__api_5fgateway"."container__gateway"."component__limiter": "Checks the client's quota" { style.stroke: "#737373" style.font-color: "#3D3D3D" } "outside" -> "system__api_5fgateway"."container__gateway": "2 relationships\nHTTPS" { style.stroke: "#737373" style.font-color: "#3D3D3D" style.stroke-dash: 4 }