मुख्य सामग्री पर जाएँ
Skillpedia
API और सर्वर (backend)41k · #6638

event-store-design

यह क्या करती है

यह टूल ऐसे सिस्टम के लिए 'event store' की योजना बनाने और बनाने में मदद करता है जो हर घटना को रिकॉर्ड करते हैं। यह जानकारी को सुरक्षित और व्यवस्थित तरीके से स्टोर करने के लिए उपयोगी है।

कब इस्तेमाल करें

  • ✓ऐसे सिस्टम की नींव बनाते समय जो इवेंट लॉग करता है।
  • ✓इन इवेंट्स को स्टोर करने के लिए तकनीक चुनते समय।
  • ✓यह व्यवस्थित करते समय कि इवेंट्स कैसे स्टोर और वापस निकाले जाएँगे।

Skill का लिंक

https://github.com/wshobson/agents/blob/main/plugins/backend-development/skills/event-store-design/SKILL.md

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/wshobson/agents/blob/main/plugins/backend-development/skills/event-store-design/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“यूज़र की गतिविधियाँ लॉग करने के लिए मैं event store कैसे डिज़ाइन करूँ?”

हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।

यह कैसे काम करती है

यह आपको event store का ढाँचा बनाने में मार्गदर्शन देता है: इवेंट्स हमेशा आखिर में जोड़े जाएँ, वे sequence में व्यवस्थित हों, और डुप्लीकेट या खोने से कैसे बचें, यह तय करना।

तकनीकी सामग्री (मूल 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' क्या है?

यह सिस्टम बनाने का तरीका है जिसमें स्थिति में होने वाले सभी बदलाव इवेंट्स के क्रम के रूप में सेव होते हैं। सिर्फ मौजूदा स्थिति नहीं, बल्कि वहाँ तक पहुँचने का पूरा इतिहास स्टोर होता है।

इवेंट्स को अपडेट या डिलीट क्यों नहीं करना चाहिए?

इवेंट्स बीते हुए तथ्य हैं। उन्हें बदलना इतिहास दोबारा लिखने जैसा होगा, जिससे गड़बड़ी हो सकती है। बेहतर है कि गलती सुधारने या पिछली कार्रवाई रद्द करने के लिए नया इवेंट जोड़ा जाए।

'correlation IDs' और '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
अपडेट की गई
15/10/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

मिलती-जुलती skills