技能 编程开发 CQRS 架构实现模式

CQRS 架构实现模式

v20261029
cqrs-implementation
本技能指导您实现命令查询职责分离(CQRS)模式,用于构建可扩展的软件架构。它专注于分离读写模型以优化查询性能并支持事件溯源系统。适用于需要独立扩展读取操作、处理复杂查询场景或构建高性能报告系统的情况。
获取技能
167 次下载
概览

CQRS Implementation

Comprehensive guide to implementing CQRS (Command Query Responsibility Segregation) patterns.

Use this skill when

  • Separating read and write concerns
  • Scaling reads independently from writes
  • Building event-sourced systems
  • Optimizing complex query scenarios
  • Different read/write data models are needed
  • High-performance reporting is required

Do not use this skill when

  • The domain is simple and CRUD is sufficient
  • You cannot operate separate read/write models
  • Strong immediate consistency is required everywhere

Instructions

  • Identify read/write workloads and consistency needs.
  • Define command and query models with clear boundaries.
  • Implement read model projections and synchronization.
  • Validate performance, recovery, and failure modes.
  • If detailed patterns are required, open resources/implementation-playbook.md.

Resources

  • resources/implementation-playbook.md for detailed CQRS patterns and templates.

Limitations

  • Use this skill only when the task clearly matches the scope described above.
  • Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
  • Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
信息
分类 编程开发
名称 cqrs-implementation
版本 v20261029
大小 5.88KB
更新时间 2026-10-30
语言