- new NestJS service on port 3011/gRPC 50059 (ADR-026) - owns 6 config_ tables (plugin/role-mapping/role-layout/layout-tpl/user-override/outbox) - GraphQL Federation 2 subgraph with DataLoader + RouterAuthGuard - gRPC ConfigService + admin REST CRUD + user REST API - three-layer merge: registry.defaultProps + roleMapping.widget_props + userOverride.props - Redis cache with 5min TTL - registered in apollo-router supergraph + docker-compose + port-allocation Implements M3 of v2.1 migration plan.
48 lines
1.2 KiB
YAML
48 lines
1.2 KiB
YAML
# Apollo Federation 2 Supergraph 组合配置
|
||
#
|
||
# 列出所有子图及其路由 URL,rover supergraph compose 使用此文件生成 supergraph SDL。
|
||
# 子图 /graphql 端点必须返回 _service { sdl } 以支持内省组合。
|
||
#
|
||
# 生成命令:
|
||
# rover supergraph compose --config supergraph.yaml --output supergraph-schema.graphql
|
||
#
|
||
# v2.1 M2: apollo-router 替代 3 个 BFF 的手动聚合职责
|
||
|
||
federation_version: =2.9.0
|
||
|
||
subgraphs:
|
||
iam:
|
||
routing_url: http://iam:3002/graphql
|
||
schema:
|
||
subgraph_url: http://iam:3002/graphql
|
||
|
||
core-edu:
|
||
routing_url: http://core-edu:3004/graphql
|
||
schema:
|
||
subgraph_url: http://core-edu:3004/graphql
|
||
|
||
content:
|
||
routing_url: http://content:3005/graphql
|
||
schema:
|
||
subgraph_url: http://content:3005/graphql
|
||
|
||
msg:
|
||
routing_url: http://msg:3007/graphql
|
||
schema:
|
||
subgraph_url: http://msg:3007/graphql
|
||
|
||
ai:
|
||
routing_url: http://ai:3008/graphql
|
||
schema:
|
||
subgraph_url: http://ai:3008/graphql
|
||
|
||
data-ana:
|
||
routing_url: http://data-ana:3006/graphql
|
||
schema:
|
||
subgraph_url: http://data-ana:3006/graphql
|
||
|
||
config:
|
||
routing_url: http://config-service:3011/graphql
|
||
schema:
|
||
subgraph_url: http://config-service:3011/graphql
|