跳转到主要内容
此内容尚未提供您的语言版本,正在以英文显示。

Projection Patterns

技能 已验证 活跃
属于:Agents

Build read models and projections from event streams. Use when implementing CQRS read sides, building materialized views, or optimizing query performance in event-sourced systems.

目的

To guide developers in implementing robust and efficient read models and projections for event-sourced systems.

功能

  • Detailed guidance on projection architecture
  • Explanation of different projection types
  • Multiple Python code templates for common patterns
  • Best practices for building projections
  • Clear use case examples

使用场景

  • Building CQRS read models
  • Creating materialized views from event streams
  • Optimizing query performance in event-sourced systems
  • Implementing real-time dashboards from events

非目标

  • Handling the event store implementation
  • Implementing the write side of CQRS
  • Providing a generic event processing framework without focus on projections

安装

请先添加 Marketplace

/plugin marketplace add wshobson/agents
/plugin install backend-development@claude-code-workflows

质量评分

已验证
98 /100
1 day ago 分析

信任信号

最近提交3 days ago
星标35.3k
许可证MIT
状态
查看源代码

类似扩展

Cqrs Implementation

95

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

技能
wshobson

Migrate Validate

100

Validate pending migrations for foreign key consistency, rollback safety, and best practices

技能
ruvnet

Azure Postgres Ts

100

Connect to Azure Database for PostgreSQL Flexible Server from Node.js/TypeScript using the pg (node-postgres) package. Use for PostgreSQL queries, connection pooling, transactions, and Microsoft Entra ID (passwordless) authentication. Triggers: "PostgreSQL", "postgres", "pg client", "node-postgres", "Azure PostgreSQL connection", "PostgreSQL TypeScript", "pg Pool", "passwordless postgres".

技能
microsoft

Neon Postgres

100

Neon Serverless Postgres 的使用指南和最佳实践。涵盖入门、使用 Neon 进行本地开发、选择连接方法、Neon 功能、身份验证(@neondatabase/auth)、PostgREST 风格的数据 API(@neondatabase/neon-js)、Neon CLI 以及 Neon 的平台 API/SDK。可用于任何与 Neon 相关的问题。

技能
neondatabase

Mongodb Search And Ai

100

指导 MongoDB 用户实现和优化 Atlas Search(全文搜索)、Vector Search(语义搜索)和 Hybrid Search 解决方案。当用户需要为文本查询(自动完成、模糊匹配、分面搜索)、语义相似性(嵌入、RAG 应用)或组合方法构建搜索功能时,请使用此技能。当用户需要文本包含、子字符串匹配(“包含”、“包括”、“出现在”)、不区分大小写或多字段文本搜索,或跨多个字段进行具有可变组合的过滤时,也请使用此技能。提供有关选择正确的搜索类型、创建索引、构建查询和使用 MongoDB MCP 服务器优化性能的工作流。

技能
mongodb

MongoDB Connection Optimizer

100

为任何支持的驱动程序语言优化 MongoDB 客户端连接配置(池、超时、模式)。在处理/更新/审查实例化或配置 MongoDB 客户端(例如,调用 `connect()` 时)、配置连接池、对连接错误(ECONNREFUSED、超时、池耗尽)进行故障排除、优化与连接相关的性能问题时,请使用此技能。这包括构建具有 MongoDB 的无服务器函数、创建使用 MongoDB 的 API 端点、优化高流量 MongoDB 应用程序、创建长期运行任务和并发性,或调试与连接相关的失败等场景。

技能
mongodb