Domain event publishing sends events representing significant changes to domain entities or aggregates. It is a higher-level messaging interaction style: a library or framework can hide broker details and provide an API for publishing events. section 8.3.10
DomainEventPublisher domainEventPublisher;
String accountId = ...;
DomainEvent domainEvent = new AccountDebited(...);
domainEventPublisher.publish("Account", accountId, Collections.singletonList(domainEvent));
The Eventuate API publishes an AccountDebited event to the Account channel, associated with an account ID. section 8.3.10
Eventuate also supports event consumers. Its APIs abstract messaging infrastructure; the platform additionally implements the transactional outbox and idempotent consumer patterns. section 8.3.10 section 8.4
