본문으로 건너뛰기
Skillpedia
API 및 서버 (백엔드)41k · #6638

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가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/wshobson/agents/blob/main/plugins/backend-development/skills/event-store-design/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

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.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬