# Code generated by ayida from gateway.ayida.hcl, main.ayida.hcl, notifications.ayida.hcl, orders.ayida.hcl, platform.ayida.hcl, users.ayida.hcl. DO NOT EDIT. direction: right vars: { d2-config: { layout-engine: elk } } classes: { external: {} kind-external: {} kind-person: {} kind-system: {} tag-gateway: {} tag-notifications: {} tag-orders: {} tag-users: {} } "external__email_5fprovider": "Email provider\nEXTERNAL · email_provider\n\nTransactional and marketing email delivery" { shape: rectangle class: [external; kind-external] style: { fill: "#525252" stroke: "#3D3D3D" font-color: "#FFFFFF" stroke-dash: 4 border-radius: 6 } } "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 } } "external__push_5fprovider": "Push provider\nEXTERNAL · push_provider\n\nMobile push notification delivery" { shape: rectangle class: [external; kind-external] style: { fill: "#525252" stroke: "#3D3D3D" font-color: "#FFFFFF" stroke-dash: 4 border-radius: 6 } } "external__sms_5fprovider": "SMS provider\nEXTERNAL · sms_provider\n\nText message delivery" { 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\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 } } "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__platform": "Shared platform\nSYSTEM · platform\n\nInfrastructure shared by every service" { shape: rectangle class: [kind-system] 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 } } "external__partner" -> "system__api_5fgateway": "Public API calls\nHTTPS" { style.stroke: "#737373" style.font-color: "#3D3D3D" } "person__customer" -> "system__api_5fgateway": "Web and mobile app requests\nHTTPS" { style.stroke: "#737373" style.font-color: "#3D3D3D" } "system__api_5fgateway" -> "system__notification_5fservice": "/api/notifications/*\ngRPC" { style.stroke: "#737373" style.font-color: "#3D3D3D" } "system__api_5fgateway" -> "system__order_5fservice": "/api/orders/*\ngRPC" { style.stroke: "#737373" style.font-color: "#3D3D3D" } "system__api_5fgateway" -> "system__user_5fservice": "/api/users/*\ngRPC" { style.stroke: "#737373" style.font-color: "#3D3D3D" } "system__notification_5fservice" -> "external__email_5fprovider": "Sends email\nHTTPS" { style.stroke: "#737373" style.font-color: "#3D3D3D" style.stroke-dash: 8 } "system__notification_5fservice" -> "external__push_5fprovider": "Sends push notifications\nHTTPS" { style.stroke: "#737373" style.font-color: "#3D3D3D" style.stroke-dash: 8 } "system__notification_5fservice" -> "external__sms_5fprovider": "Sends SMS\nHTTPS" { style.stroke: "#737373" style.font-color: "#3D3D3D" style.stroke-dash: 8 } "system__order_5fservice" -> "system__notification_5fservice": "Sends immediate notifications\ngRPC" { style.stroke: "#737373" style.font-color: "#3D3D3D" } "system__order_5fservice" -> "system__platform": "Publishes order.created, order.paid, order.shipped, order.delivered\nKafka" { style.stroke: "#737373" style.font-color: "#3D3D3D" style.stroke-dash: 8 } "system__order_5fservice" -> "system__user_5fservice": "Looks up the ordering user\ngRPC" { style.stroke: "#737373" style.font-color: "#3D3D3D" } "system__platform" -> "system__notification_5fservice": "Consumes order.* and user.created\nKafka" { style.stroke: "#737373" style.font-color: "#3D3D3D" } "system__platform" -> "system__order_5fservice": "Consumes user.deleted to anonymize orders\nKafka" { style.stroke: "#737373" style.font-color: "#3D3D3D" } "system__user_5fservice" -> "system__platform": "Publishes user.created, user.updated, user.deleted\nKafka" { style.stroke: "#737373" style.font-color: "#3D3D3D" style.stroke-dash: 8 }