Skills Development Event Publisher and Domain Event Abstractions

Event Publisher and Domain Event Abstractions

v20260825
webiny-api-event-publisher-catalog
This catalog provides core abstractions for implementing event-driven architectures (EDA). It includes `DomainEvent`, the base class for all business domain events, and `EventPublisher`, the mechanism used to publish these events to registered handlers. Use these components to effectively decouple services and build robust, reactive systems.
Get Skill
286 downloads
Overview

api/event-publisher

How to Use

  1. Find the abstraction you need below
  2. You MUST read the source file to get the exact interface and types!
  3. Import: import { Name } from "<importPath>";
  4. See webiny-use-case-pattern or webiny-event-handler-pattern skills for implementation patterns

Abstractions


Name: DomainEvent Import: import { DomainEvent } from "webiny/api/event-publisher" Source: @webiny/api-core/features/eventPublisher/index.ts Description: Base class for all domain events.


Name: EventPublisher Import: import { EventPublisher } from "webiny/api/event-publisher" Source: @webiny/api-core/features/eventPublisher/index.ts Description: Publish domain events to registered handlers.


Info
Category Development
Name webiny-api-event-publisher-catalog
Version v20260825
Size 879B
Updated At 2026-09-06
Language