# Code generated by ayida from gateway.ayida.hcl, main.ayida.hcl, notifications.ayida.hcl, orders.ayida.hcl, users.ayida.hcl. DO NOT EDIT. direction: down vars: { d2-config: { layout-engine: elk } } classes: { external: {} kind-container: {} kind-external: {} kind-person: {} kind-system: {} shape-database: {} tag-gateway: {} tag-notifications: {} tag-orders: {} tag-users: {} } "external__partner": "Third-party integrator\nEXTERNAL · partner\n\nPartner systems calling the public API" { shape: rectangle class: [external; kind-external] style: { fill: "#525252" stroke: "#3D3D3D" font-color: "#FFFFFF" stroke-dash: 4 border-radius: 6 } } "person__customer": "Customer\nPERSON · customer\n\nUses the web and mobile apps to manage an account\nand place orders" { shape: rectangle class: [kind-person] style: { fill: "#1A4275" stroke: "#14365F" font-color: "#FFFFFF" border-radius: 6 } } "system__api_5fgateway": "API Gateway\n[System] · api_gateway" { shape: rectangle class: [kind-system; tag-gateway] style: { fill: transparent stroke: "#737373" font-color: "#3D3D3D" stroke-dash: 4 } "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 } } "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__notification_5fservice": "Notification Service\nSYSTEM · notification_service\n\nHandles all user notifications across email, SMS\nand push" { shape: rectangle class: [kind-system; tag-notifications] style: { fill: "#1E4F8F" stroke: "#183F73" font-color: "#FFFFFF" border-radius: 6 } } "system__order_5fservice": "Order Service\nSYSTEM · order_service\n\nManages the order lifecycle and processing" { shape: rectangle class: [kind-system; tag-orders] style: { fill: "#1E4F8F" stroke: "#183F73" font-color: "#FFFFFF" border-radius: 6 } } "system__user_5fservice": "User Service\nSYSTEM · user_service\n\nManages user accounts and authentication" { shape: rectangle class: [kind-system; tag-users] style: { fill: "#1E4F8F" stroke: "#183F73" font-color: "#FFFFFF" border-radius: 6 } } "system__api_5fgateway"."container__gateway" -> "system__api_5fgateway"."container__rate_5flimit_5fstore": "Reads and increments counters" { style.stroke: "#737373" style.font-color: "#3D3D3D" } "system__api_5fgateway"."container__gateway" -> "system__notification_5fservice": "/api/notifications/*\ngRPC" { style.stroke: "#737373" style.font-color: "#3D3D3D" } "system__api_5fgateway"."container__gateway" -> "system__order_5fservice": "/api/orders/*\ngRPC" { style.stroke: "#737373" style.font-color: "#3D3D3D" } "system__api_5fgateway"."container__gateway" -> "system__user_5fservice": "/api/users/*\ngRPC" { style.stroke: "#737373" style.font-color: "#3D3D3D" } "external__partner" -> "system__api_5fgateway"."container__gateway": "Public API calls\nHTTPS" { style.stroke: "#737373" style.font-color: "#3D3D3D" } "person__customer" -> "system__api_5fgateway"."container__gateway": "Web and mobile app requests\nHTTPS" { style.stroke: "#737373" style.font-color: "#3D3D3D" }