# Code generated by ayida from gateway.ayida.hcl, main.ayida.hcl, notifications.ayida.hcl, orders.ayida.hcl, platform.ayida.hcl. DO NOT EDIT. direction: down vars: { d2-config: { layout-engine: elk } } classes: { external: {} kind-container: {} kind-external: {} kind-system: {} shape-database: {} tag-gateway: {} tag-notifications: {} tag-orders: {} } "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__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 } } "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\n[System] · notification_service" { shape: rectangle class: [kind-system; tag-notifications] style: { fill: transparent stroke: "#737373" font-color: "#3D3D3D" stroke-dash: 4 } "container__notification_5fdb": "Notification DB\nCONTAINER · MongoDB · notification_db\n\nTemplates and user preferences" { shape: rectangle class: [kind-container; shape-database] style: { fill: "#2D66AE" stroke: "#245390" font-color: "#FFFFFF" border-radius: 6 } } "container__notifier": "Notifier\nCONTAINER · Node.js, gRPC · notifier\n\nSends notifications and manages preferences" { shape: rectangle class: [kind-container] style: { fill: "#2D66AE" stroke: "#245390" 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__notification_5fservice"."container__notifier" -> "system__notification_5fservice"."container__notification_5fdb": "Reads templates and preferences" { style.stroke: "#737373" style.font-color: "#3D3D3D" } "system__notification_5fservice"."container__notifier" -> "external__email_5fprovider": "Sends email\nHTTPS" { style.stroke: "#737373" style.font-color: "#3D3D3D" style.stroke-dash: 8 } "system__notification_5fservice"."container__notifier" -> "external__push_5fprovider": "Sends push notifications\nHTTPS" { style.stroke: "#737373" style.font-color: "#3D3D3D" style.stroke-dash: 8 } "system__notification_5fservice"."container__notifier" -> "external__sms_5fprovider": "Sends SMS\nHTTPS" { style.stroke: "#737373" style.font-color: "#3D3D3D" style.stroke-dash: 8 } "system__api_5fgateway" -> "system__notification_5fservice"."container__notifier": "/api/notifications/*\ngRPC" { style.stroke: "#737373" style.font-color: "#3D3D3D" } "system__order_5fservice" -> "system__notification_5fservice"."container__notifier": "Sends immediate notifications\ngRPC" { style.stroke: "#737373" style.font-color: "#3D3D3D" } "system__platform" -> "system__notification_5fservice"."container__notifier": "Consumes order.* and user.created\nKafka" { style.stroke: "#737373" style.font-color: "#3D3D3D" }