Hermes 完整多租户与部门路由架构
方案 4:外部参与者、按客户划分的网关与路由、租户内部的部门前缀,以及每客户独立沙箱。
完整 FlowZap 代码
将以下 FlowZap 代码复制并粘贴到您的 FlowZap 账户的项目中,即可查看此模板图。
client_users { # External Participants
n1: circle label:"Acme Users"
n2: circle label:"Beta Users"
hermes_profiles.n8.handle(right) -> execution_sandboxes.n10.handle(left) [label="executes"]
hermes_profiles.n7.handle(right) -> execution_sandboxes.n9.handle(left) [label="executes"]
hermes_profiles.n6.handle(right) -> execution_sandboxes.n9.handle(left) [label="executes"]
entry_gateways.n4.handle(right) -> hermes_profiles.n8.handle(left)
hermes_profiles.n5.handle(bottom) -> hermes_profiles.n7.handle(top) [label="if /support"]
hermes_profiles.n5.handle(right) -> hermes_profiles.n6.handle(left) [label="if /eng"]
entry_gateways.n3.handle(right) -> hermes_profiles.n5.handle(left)
client_users.n2.handle(right) -> entry_gateways.n4.handle(left) [label="general"]
client_users.n1.handle(right) -> entry_gateways.n3.handle(left) [label="/eng or /support"]
}
entry_gateways { # Client Gateways
n3: rectangle label:"Acme Gateway"
n4: rectangle label:"Beta Gateway"
}
hermes_profiles { # Routed Profiles
n5: diamond label:"Acme Router"
n6: rectangle label:"acme-eng"
n7: rectangle label:"acme-support"
n8: rectangle label:"beta"
}
execution_sandboxes { # Secure Runtimes
n9: rectangle label:"Acme Sandbox"
n10: rectangle label:"Beta Sandbox"
}
安装 MCP 包npm install -g flowzap-mcpMCP 文档