faststream icon indicating copy to clipboard operation
faststream copied to clipboard

Feature: Simple in-process broker

Open baughmann opened this issue 4 months ago • 2 comments

Describe the solution you'd like It would be nice to have the option to use a simple (non-thread-safe) local broker, and/or a IPC-backed broker. This would be similar to:

Feature code example InMemoryBroker:

from faststream import FastStream, Logger
from faststream.nats import InMemoryBroker

broker = InMemoryBroker()
app = FastStream(broker)

# ... pub/sub works the same but is not thread-safe
...

IPCBroker:

from faststream import FastStream, Logger
from faststream.nats import IPCBroker

broker = IPCBroker()
app = FastStream(broker)

# ... pub/sub works the same
...

Describe alternatives you've considered The libraries listed above as examples, or my own wrapper over IPC sockets or ZMQ.

baughmann avatar Aug 07 '25 12:08 baughmann

I'm looking for a way to run the taskiq scheduler worker.app:scheduler scheduler in process. Is this currently prossible? Such that on startup of faststream it also starts the scheduler

theobouwman avatar Sep 01 '25 16:09 theobouwman

I would like to work on this

oek1ng avatar Sep 11 '25 17:09 oek1ng