Message Priority
Synchronous Prioritization
final class UserRegisteredSubscriber
{
#[Priority(5)]
#[EventHandler]
public function updateSomeData(UserWasRegistered $event): void
{
// updating data will be called first
}
#[Priority(1)]
#[EventHandler]
public function sendNotification(UserWasRegistered $event): void
{
// sending notification will be called second
}
}Default Synchronous Prioritization
Asynchronous Prioritization
Message Handler Priority
Message Priority
Last updated
Was this helpful?