EventBus
immediately publish the event, but sometimes you need to delay the publishing of the event and for
this you can use the interface of the queue.
interface EventQueue
{
public function publish(Event $event);
}
The publishing interface is general, and the interface for obtaining events from the queue depends on the implementation of the queue system.
We offer two options for implementing queues: