Files
cps-develop-docs/.github/instructions/architecture.instructions.md

13 lines
735 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
applyTo: "01 - Knowledge & Prompts/**/*.md"
description: "用于架构设计文档与方案讨论关键词模块化单体、分层、ADR、依赖方向"
---
# 架构设计约束
- 默认采用模块化单体;仅在明确满足隔离性、扩展性、独立部署、团队规模等触发条件时考虑微服务拆分。
- 必须保持单向依赖流,禁止下层反向依赖上层。
- 严格关注点分离:协议处理、业务逻辑、数据持久化分离。
- 遇到重大架构分歧必须先提出可选方案并等待确认;确认后先产出 ADR 再继续实现。
- 参考规范:`02 - Design Standard/2.1 系统架构设计原则.md``02 - Design Standard/2.4 项目文档与架构决策规范.md`