# Code generated by ayida from gateway.ayida.hcl, notifications.ayida.hcl, orders.ayida.hcl, platform.ayida.hcl, users.ayida.hcl. DO NOT EDIT. direction: down vars: { d2-config: { layout-engine: elk } } classes: { kind-container: {} kind-system: {} shape-database: {} tag-gateway: {} tag-notifications: {} tag-orders: {} tag-users: {} } "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\n[System] · order_service" { shape: rectangle class: [kind-system; tag-orders] style: { fill: transparent stroke: "#737373" font-color: "#3D3D3D" stroke-dash: 4 } "container__order_5fapi": "Order API\nCONTAINER · Go, gRPC · order_api\n\nOrder creation, status, cancellation and history" { shape: rectangle class: [kind-container] style: { fill: "#2D66AE" stroke: "#245390" font-color: "#FFFFFF" border-radius: 6 } } "container__order_5fdb": "Order DB\nCONTAINER · PostgreSQL · order_db\n\nOrders and order status history" { shape: rectangle class: [kind-container; shape-database] style: { fill: "#2D66AE" stroke: "#245390" 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 } } "system__order_5fservice"."container__order_5fapi" -> "system__order_5fservice"."container__order_5fdb": "Reads and writes orders\nSQL" { style.stroke: "#737373" style.font-color: "#3D3D3D" } "system__order_5fservice"."container__order_5fapi" -> "system__notification_5fservice": "Sends immediate notifications\ngRPC" { style.stroke: "#737373" style.font-color: "#3D3D3D" } "system__order_5fservice"."container__order_5fapi" -> "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"."container__order_5fapi" -> "system__user_5fservice": "Looks up the ordering user\ngRPC" { style.stroke: "#737373" style.font-color: "#3D3D3D" } "system__api_5fgateway" -> "system__order_5fservice"."container__order_5fapi": "/api/orders/*\ngRPC" { style.stroke: "#737373" style.font-color: "#3D3D3D" } "system__platform" -> "system__order_5fservice"."container__order_5fapi": "Consumes user.deleted to anonymize orders\nKafka" { style.stroke: "#737373" style.font-color: "#3D3D3D" }