微服务是一个组织决策,同样也是一个技术决策。Conway定律指出,系统会镜像构建它们的组织的通信结构——因此你的团队结构会塑造你的架构,无论你是否有计划地这样做。
Conway定律
text
"Organizations design systems that copy their communication structure."
3 teams that don't talk → 3 services with awkward, accidental seams
→ Inverse Conway Maneuver: design TEAMS around the architecture you want
团队所有权
每个服务都应该有一个明确的所有者团队来构建、部署和运维它("你构建它,你就运维它")。共享所有权会导致服务被忽视。
text
Orders team ─owns─▶ Orders service (code + deploy + on-call)
Payments team ─owns─▶ Payments service
→ autonomy: each team ships without waiting on others
