微服务 API 网关架构
Architecture
微服务 API 网关架构图,展示请求路由、JWT 身份验证、速率限制、服务发现以及跨分布式后端服务的响应聚合。该模板模拟微服务生态系统中所有客户端流量的入口点,在请求到达内部服务之前执行安全策略。适合设计具有集中式横切关注点的可扩展 API 基础设施的平台工程师。
Architecture
无服务器边缘计算架构图,展示 CloudFront 或 Cloudflare 边缘位置、用于 A/B 测试和地理个性化的 Lambda@Edge 函数、源站盾请求合并以及缓存优先响应策略。该模板可视化计算如何移至网络边缘以实现超低延迟响应,边缘函数在请求和响应到达源站之前进行修改。对于服务全球受众的性能关键型应用至关重要。
User { # End User
n1: circle label:"Browser Request"
n2: rectangle label:"DNS Resolution (Route 53)"
n3: rectangle label:"Receive Optimized Response"
n4: circle label:"Page Rendered"
n1.handle(right) -> n2.handle(left)
n2.handle(bottom) -> Edge.n5.handle(top) [label="Nearest PoP"]
n3.handle(right) -> n4.handle(left)
}
Edge { # Edge Network (CloudFront/Cloudflare)
n5: rectangle label:"Edge Location PoP"
n6: diamond label:"Cache Hit?"
n7: rectangle label:"Return Cached Response"
n8: rectangle label:"Edge Function (Lambda@Edge)"
n9: rectangle label:"A/B Test Routing"
n10: rectangle label:"Geo-Based Personalization"
n5.handle(right) -> n6.handle(left)
n6.handle(right) -> n7.handle(left) [label="HIT"]
n6.handle(bottom) -> n8.handle(top) [label="MISS"]
n7.handle(top) -> User.n3.handle(bottom) [label="Fast Response"]
n8.handle(right) -> n9.handle(left) [label="Modify Request"]
n9.handle(right) -> n10.handle(left) [label="Personalize"]
n10.handle(bottom) -> Origin.n11.handle(top) [label="Forward"]
}
Origin { # Origin Services
n11: rectangle label:"Origin Shield"
n12: rectangle label:"Application Load Balancer"
n13: rectangle label:"Serverless API"
n14: rectangle label:"Static Asset Store (S3)"
n15: rectangle label:"Generate Response"
n11.handle(right) -> n12.handle(left) [label="Collapse Requests"]
n12.handle(right) -> n13.handle(left) [label="Dynamic"]
n12.handle(bottom) -> n14.handle(top) [label="Static"]
n13.handle(right) -> n15.handle(left) [label="Compute"]
n14.handle(right) -> n15.handle(left) [label="Assets"]
n15.handle(top) -> Edge.n8.handle(bottom) [label="Cache + Return"]
n15.handle(top) -> User.n3.handle(bottom) [label="Response"]
}
Serving all requests from a single origin region adds 100-300ms of latency for global users. Edge computing moves computation to CDN points of presence worldwide, enabling sub-50ms responses for personalization, A/B testing, and authentication—without the complexity of multi-region deployments.
Multi-region deployments provide full compute at the edge but are expensive and complex. Cloudflare Workers offer a simpler edge compute model. This template shows the CDN-based edge computing architecture with Lambda@Edge.
| Template Name | 无服务器边缘计算架构 |
| Category | Architecture |
| Steps | 6 workflow steps |
| Format | FlowZap Code (.fz file) |
Architecture
微服务 API 网关架构图,展示请求路由、JWT 身份验证、速率限制、服务发现以及跨分布式后端服务的响应聚合。该模板模拟微服务生态系统中所有客户端流量的入口点,在请求到达内部服务之前执行安全策略。适合设计具有集中式横切关注点的可扩展 API 基础设施的平台工程师。
Architecture
每服务独立数据库架构图,每个微服务拥有其专用数据存储,通过 Kafka 进行事件驱动同步以实现跨服务数据一致性。该模板展示了微服务数据隔离的核心原则,展示 PostgreSQL 和 MongoDB 如何在多语言持久化策略中共存。对于在保持最终一致性的同时强制服务自治的架构师至关重要。
Architecture
按业务能力组织的微服务分解架构图:身份认证、产品目录、定价和订单履行,每个都有独立的数据存储和 API。该模板展示如何将单体应用拆分为与业务领域对齐的服务,使用 Backend-for-Frontend (BFF) 模式进行客户端特定的聚合。适合规划领域驱动微服务边界的架构师。
Architecture
绞杀者模式迁移架构图,展示使用路由层在新旧系统之间分流流量,逐步用新微服务替换遗留单体应用。该模板模拟经过验证的迁移策略,新功能作为微服务构建,遗留端点逐步退役。对于在不进行高风险大爆炸重写的情况下现代化遗留系统的团队至关重要。