event-store-design
하는 일
이 도구는 모든 일을 기록하는 시스템을 위한 '이벤트 스토어'를 계획하고 만드는 데 도움을 줍니다. 정보를 안전하고 체계적으로 저장하는 데 유용합니다.
사용하는 경우
- ✓이벤트를 기록하는 시스템의 기반을 만들 때.
- ✓이 이벤트를 저장할 기술을 고를 때.
- ✓이벤트를 저장하고 검색하는 방식을 정리하는 경우.
스킬 링크
https://github.com/wshobson/agents/blob/main/plugins/backend-development/skills/event-store-design/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“애플리케이션의 사용자 행동을 기록하기 위해 이벤트 스토어를 어떻게 설계하면 좋을까요?”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
이벤트 스토어의 구조를 만드는 과정을 안내합니다. 이벤트가 항상 끝에 추가되는 방식, 순서가 있는 시퀀스로 정리되는 방식, 중복이나 손실이 없도록 보장하는 방법을 정의합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
Event Store Design
Comprehensive guide to designing event stores for event-sourced applications.
When to Use This Skill
- Designing event sourcing infrastructure
- Choosing between event store technologies
- Implementing custom event stores
- Optimizing event storage and retrieval
- Setting up event store schemas
- Planning for event store scaling
Core Concepts
1. Event Store Architecture
┌─────────────────────────────────────────────────────┐
│ Event Store │
├─────────────────────────────────────────────────────┤
│ ┌─────────────┐ ┌─────────────┐ ┌─────────────┐ │
│ │ Stream 1 │ │ Stream 2 │ │ Stream 3 │ │
│ │ (Aggregate) │ │ (Aggregate) │ │ (Aggregate) │ │
│ ├─────────────┤ ├─────────────┤ ├─────────────┤ │
│ │ Event 1 │ │ Event 1 │ │ Event 1 │ │
│ │ Event 2 │ │ Event 2 │ │ Event 2 │ │
│ │ Event 3 │ │ ... │ │ Event 3 │ │
│ │ ... │ │ │ │ Event 4 │ │
│ └─────────────┘ └─────────────┘ └─────────────┘ │
├─────────────────────────────────────────────────────┤
│ Global Position: 1 → 2 → 3 → 4 → 5 → 6 → ... │
└─────────────────────────────────────────────────────┘
2. Event Store Requirements
| Requirement | Description |
|---|---|
| Append-only | Events are immutable, only appends |
| Ordered | Per-stream and global ordering |
| Versioned | Optimistic concurrency control |
| Subscriptions | Real-time event notifications |
| Idempotent | Handle duplicate writes safely |
Technology Comparison
| Technology | Best For | Limitations |
|---|---|---|
| EventStoreDB | Pure event sourcing | Single-purpose |
| PostgreSQL | Existing Postgres stack | Manual implementation |
| Kafka | High-throughput streaming | Not ideal for per-stream queries |
| DynamoDB | Serverless, AWS-native | Query limitations |
| Marten | .NET ecosystems | .NET specific |
Templates and detailed worked examples
Full template library and detailed worked examples live in references/details.md. Read that file when you need the concrete templates.
Best Practices
Do's
- Use stream IDs that include aggregate type -
Order-{uuid} - Include correlation/causation IDs - For tracing
- Version events from day one - Plan for schema evolution
- Implement idempotency - Use event IDs for deduplication
- Index appropriately - For your query patterns
Don'ts
- Don't update or delete events - They're immutable facts
- Don't store large payloads - Keep events small
- Don't skip optimistic concurrency - Prevents data corruption
- Don't ignore backpressure - Handle slow consumers
자주 묻는 질문
'이벤트 소싱(event sourcing)'이란 무엇인가요?
모든 상태 변화를 이벤트의 순서로 저장하는 방식으로 시스템을 만드는 것입니다. 현재 상태만 저장하는 대신, 그 상태에 이르기까지의 기록을 저장합니다.
이벤트를 왜 수정하거나 삭제하면 안 되나요?
이벤트는 과거의 사실입니다. 이를 바꾸면 역사를 다시 쓰는 것과 같아 불일치가 생길 수 있습니다. 이전 행동을 고치거나 취소하려면 새 이벤트를 추가하는 것이 더 좋습니다.
'상관 ID(correlation IDs)'와 '원인 ID(causation IDs)'란 무엇인가요?
이벤트가 시스템의 여러 부분을 거치며 어디에서 왔고 어떻게 흘러갔는지 추적하도록 돕는 식별자입니다. 이를 통해 디버깅과 무슨 일이 있었는지 이해하기가 더 쉬워집니다.
상세 정보
작성자의 원본 설명
Design and implement event stores for event-sourced systems. Use when building event sourcing infrastructure, choosing event store technologies, or implementing event persistence patterns.
repo: wshobson/agents
인기도
- GitHub 스타
- 41k
- 순위
- #6638
- 라이선스
- MIT
- 업데이트
- 2026. 10. 15.
댓글
- …
이 저장소의 다른 스킬
screen-reader-testing
41k에이전트가 스크린 리더로 웹사이트를 테스트해 접근성을 확인하도록 돕습니다.
wcag-audit-patterns
41k에이전트가 WCAG 지침에 따라 웹사이트의 접근성을 감사하고 문제를 고치도록 돕습니다.
multi-reviewer-patterns
41k에이전트가 병렬 코드 리뷰를 조율하고, 중복된 발견 사항을 정리하며, 보고서를 통합하도록 돕습니다.
parallel-debugging
41k에이전트가 병렬 조사와 근본 원인 분석으로 복잡한 문제를 디버그하도록 돕습니다.
비슷한 스킬
api-connector-builder
280k에이전트가 기존 패턴을 따라 새로운 API 연결을 만들도록 합니다. 새로운 방식을 도입하지 않고 연동을 하나 더 추가할 때 씁니다.
api-design
280k에이전트가 모범 사례에 따라 REST API를 설계하도록 돕습니다. API가 통신하는 방식, 오류를 보여 주는 방식, 데이터를 정리하는 방식을 정하는 데 유용합니다.
backend-patterns
280k에이전트가 서버 쪽 아키텍처 패턴과 데이터베이스 최적화를 다루도록 돕습니다. 서버에서 실행되는 코드를 만들거나 검토할 때 유용합니다.