# Code generated by ayida from gateway.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-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__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\n[System] · user_service" { shape: rectangle class: [kind-system; tag-users] style: { fill: transparent stroke: "#737373" font-color: "#3D3D3D" stroke-dash: 4 } "container__session_5fcache": "Session cache\nCONTAINER · Redis · session_cache\n\nActive sessions" { shape: rectangle class: [kind-container; shape-database] style: { fill: "#2D66AE" stroke: "#245390" font-color: "#FFFFFF" border-radius: 6 } } "container__user_5fapi": "User API\nCONTAINER · Go, gRPC · user_api\n\nRegistration, login, profiles and tokens" { shape: rectangle class: [kind-container] style: { fill: "#2D66AE" stroke: "#245390" font-color: "#FFFFFF" border-radius: 6 } } "container__user_5fdb": "User DB\nCONTAINER · PostgreSQL · user_db\n\nUser accounts and profiles" { shape: rectangle class: [kind-container; shape-database] style: { fill: "#2D66AE" stroke: "#245390" font-color: "#FFFFFF" border-radius: 6 } } } "system__user_5fservice"."container__user_5fapi" -> "system__user_5fservice"."container__session_5fcache": "Caches sessions" { style.stroke: "#737373" style.font-color: "#3D3D3D" } "system__user_5fservice"."container__user_5fapi" -> "system__user_5fservice"."container__user_5fdb": "Reads and writes users\nSQL" { style.stroke: "#737373" style.font-color: "#3D3D3D" } "system__user_5fservice"."container__user_5fapi" -> "system__platform": "Publishes user.created, user.updated, user.deleted\nKafka" { style.stroke: "#737373" style.font-color: "#3D3D3D" style.stroke-dash: 8 } "system__api_5fgateway" -> "system__user_5fservice"."container__user_5fapi": "/api/users/*\ngRPC" { style.stroke: "#737373" style.font-color: "#3D3D3D" } "system__order_5fservice" -> "system__user_5fservice"."container__user_5fapi": "Looks up the ordering user\ngRPC" { style.stroke: "#737373" style.font-color: "#3D3D3D" }