Looking to hire Laravel developers? Try LaraJobs

laravel-distributable-stream-in-process maintained by mk-josias

Description
In-process driver for the events of mk-josias/laravel-distributable: each event goes to the handlers of the modules the process runs, once the emitter's transaction commits, with no broker.
Last update
2026/10/21 16:08 (dev-main)
License
Downloads
0

Comments
comments powered by Disqus

In-process Event Stream

The in-process events driver of laravel-distributable, with no broker.

composer require mk-josias/laravel-distributable-stream-in-process

Its provider is discovered and registers the driver. The shipped default stream uses it once DISTRIBUTABLE_STREAM_DRIVER=in-process.

Each event goes to the handlers of the modules the process runs, once the emitter's transaction commits, with no stream:consume. A module another process runs never gets it: when modules run apart, use a driver that crosses processes, such as redis.

A handler that implements ShouldQueue still runs on the queue, as with any driver.