cqrs-implementation

仓库创建 2025年7月25日最近提交 5 天前SkillHot 收录 21 天前
▸ 精选理由

适合需要高扩展性与复杂查询优化的系统架构师与开发者。

这个 Skill 做什么

实现 CQRS 模式的指南,用于分离读写模型和优化查询。

把命令(写)和查询(读)彻底分开,允许用不同的数据模型和存储来优化各自的性能,适合读多写少、复杂报表或事件溯源的系统。需要在系统要独立扩展读端、减少查询复杂度或提升可维护性时采用。特别之处是可以选择最合适的存储技术和异步同步策略,但同时要处理好最终一致性和额外的系统复杂度。

▸ 展开 SKILL.md 英文原文

Implement Command Query Responsibility Segregation for scalable architectures. Use when separating read and write models, optimizing query performance, or building event-sourced systems.

开发编程CQRS读写分离事件溯源通用
3.8w
Stars
4.1k
Forks
40
仓库内 Skill
+713
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/wshobson/agents/main/plugins/backend-development/skills/cqrs-implementation/SKILL.md
或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/wshobson/agents/main/plugins/backend-development/skills/cqrs-implementation/SKILL.md"
SKILL.MD 节选查看完整文件 ↗
# CQRS Implementation

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

## When to Use This Skill

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

## Core Concepts

### 1. CQRS Architecture

```
                    ┌─────────────┐
                    │   Client    │
                    └──────┬──────┘
                           │
              ┌────────────┴────────────┐
              │                         │
              ▼                         ▼
       ┌──
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有