Outbox Pattern
Outbox Pattern
Installation
Dbal Message Channel
#[ServiceContext]
public function databaseChannel()
{
return DbalBackedMessageChannelBuilder::create("async");
}Asynchronous Event Handler
#[Asynchronous("async")]
#[EventHandler(endpointId:"notifyAboutNeworder")]
public function notifyAboutNewOrder(OrderWasPlaced $event) : void
{
// notify about new order
}Setup Outbox where it's needed
Scaling the solution
Publishing deduplication
Handling via different Message Broker
Combined Message Channels with reference
Last updated
Was this helpful?