返回 Skill 列表
extension
分类: 开发与工程无需 API Key

"System Architecture Patterns"

应用经过验证的架构模式(MVC、分层、微服务)来创建具有清晰关注点分离的可维护系统

person作者: jakexiaohubgithub

System Architecture Patterns

Purpose

Apply proven architectural patterns to create maintainable, scalable systems with clear separation of concerns and well-defined component responsibilities.

When to Use

  • Designing new systems or major features
  • Refactoring existing architecture
  • Solving common architectural challenges
  • Organizing complex codebases

Key Capabilities

  1. Pattern Selection - Choose appropriate patterns for the problem
  2. Component Design - Define clear boundaries and responsibilities
  3. Integration Planning - Design how components communicate

Approach

  1. Understand the problem domain and requirements
  2. Identify architectural concerns (scalability, maintainability, etc.)
  3. Select patterns that address those concerns
  4. Define component boundaries and interfaces
  5. Document pattern application and rationale

Example

Context: Web application with business logic and data access

Pattern: Layered Architecture

Presentation Layer (UI)
    ↓
Business Logic Layer (Services)
    ↓
Data Access Layer (Repositories)
    ↓
Database

Benefits:

  • Clear separation of concerns
  • Easy to test each layer independently
  • Can swap implementations (e.g., different databases)

Best Practices

  • ✅ Choose patterns that solve actual problems
  • ✅ Document why you chose each pattern
  • ✅ Keep it simple - don't over-architect
  • ❌ Avoid: Using patterns just because they're popular