Support for RabbitMQ streams #100
Replies: 4 comments 4 replies
-
Well, It is a good idea. Wait for it in days. |
Beta Was this translation helpful? Give feedback.
-
@meirmedigate Is that are you looking for? from propan import PropanApp, RabbitBroker
from propan.brokers.rabbit import RabbitQueue
from propan.annotations import Logger
broker = RabbitBroker(consumers=10)
app = PropanApp(broker)
queue = RabbitQueue(
name="test",
durable=True,
arguments={
"x-queue-type": "stream",
},
)
@broker.handle(queue, consume_arguments={"x-stream-offset": "first"})
async def handle(msg, logger: Logger):
logger.info(msg)
@app.after_startup
async def test():
await broker.publish("Hi!", queue) I added the |
Beta Was this translation helpful? Give feedback.
-
Excuse me, but could you explain what the native stream protocol is? I don't seem to know him If possible, attach any material on the topic, I will study it and add support to Propan |
Beta Was this translation helpful? Give feedback.
-
Did you talk about this feature? |
Beta Was this translation helpful? Give feedback.
-
Streams are supported in RabbitMQ since 3.9.0.
It would be nice if there would be support for this as well.
Beta Was this translation helpful? Give feedback.
All reactions