Asynchronous Message Handlers
Making message handlers asynchronous with a single attribute
Running Asynchronously
#[Asynchronous("orders")]
#[CommandHandler(endpointId: "place_order_endpoint")]
public function placeOrder(PlaceOrderCommand $command) : void
{
// do something with $command
}#[Asynchronous("orders")]
#[EventHandler(endpointId: "order_was_placed")]
public function when(OrderWasPlaced $event) : void
{
// do something with $event
}Message Channel
Running Message Consumer
Dynamic Configuration
Static Configuration
Available Providers (Types)
Multiple Asynchronous Endpoints
Asynchronous Class
Intercepting asynchronous endpoint
Asynchronous Execution Attributes (Enterprise)
Built-in Asynchronous Execution Attributes
Attribute
Effect
Combining Asynchronous Execution Attributes
Custom Asynchronous Execution Attributes
Endpoint Id
Last updated
Was this helpful?