Chuyển đến nội dung
Skillpedia
API và máy chủ (backend)48k · #4277

cqrs-implementation

Skill này làm gì

Công cụ này giúp tổ chức cách hệ thống máy tính xử lý thông tin. Nó tách việc “ghi” dữ liệu khỏi việc “đọc” dữ liệu, giúp hệ thống nhanh hơn và dễ quản lý hơn, đặc biệt khi có nhiều dữ liệu hoặc nhiều người dùng cùng lúc.

Khi nào nên dùng

  • ✓Khi bạn cần hệ thống trả lời các câu hỏi thật nhanh.
  • ✓Khi hệ thống phải xử lý nhiều thông tin mới và nhiều câu hỏi cùng lúc.
  • ✓Khi xây dựng hệ thống mà mỗi thay đổi đều được ghi lại dưới dạng sự kiện.

Liên kết skill

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/cqrs-implementation/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/cqrs-implementation/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Làm sao để tổ chức hệ thống để nó trả lời câu hỏi của người dùng nhanh hơn?”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Nó hoạt động bằng cách chia công việc thành hai phần: một phần nhận và lưu thông tin mới (lệnh) và một phần truy xuất và hiển thị thông tin có sẵn (truy vấn). Điều này cho phép tối ưu từng phần riêng biệt.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

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.
Câu hỏi thường gặp

CQRS là gì?

CQRS là viết tắt của “Command Query Responsibility Segregation”. Đây là một cách tổ chức hệ thống máy tính.

Khi nào KHÔNG nên dùng cái này?

Đừng dùng nếu hệ thống của bạn rất đơn giản, nếu bạn không thể tách phần ghi và phần đọc, hoặc nếu bạn cần mọi thứ được cập nhật ngay lập tức ở mọi nơi.

Tôi có thể tìm thêm chi tiết ở đâu?

Để xem các mẫu và template chi tiết hơn, hãy tham khảo file 'resources/implementation-playbook.md'.

Chi tiết

Mô tả gốc của tác giả

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

repo: sickn33/agentic-awesome-skills

Độ phổ biến

Sao GitHub
48k
Vị trí xếp hạng
#4277
Giấy phép
MIT
Cập nhật
15/10/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự