implementing-domain-events

Official

Build robust, decoupled event-driven systems.

Authorothercode
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill provides a comprehensive guide to implementing a domain event bus architecture, enabling decoupled communication between different parts of your application and ensuring transactional safety.

Core Features & Use Cases

  • Event Registration: Define and register domain events within your aggregates.
  • Event Publishing: Safely publish events after transaction commits using transaction.on_commit.
  • Event Handling: Create and register handlers for domain events.
  • Use Case: When a new user is created, automatically publish a UserCreatedEvent that triggers an email notification and updates a search index, all without the user creation logic directly knowing about these downstream processes.

Quick Start

Follow the guide to implement domain events by defining an event, registering it in an aggregate, and publishing it from a service after a transaction commit.

Dependency Matrix

Required Modules

None required

Components

references

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: implementing-domain-events
Download link: https://github.com/othercode/profiles/archive/main.zip#implementing-domain-events

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.