A
A
ArtiomK2021-09-27 12:19:20
Python
ArtiomK, 2021-09-27 12:19:20

Can NATS keep messages in memory if no consumer is currently enabled (producer-consumers pattern)?

I want to use NATS to distribute tasks among multiple worker processes. Everything works as expected if I have at least one worker "online", but if there are no worker processes, the messages are just thrown when I enable one worker, I have no messages (which were created when it was not enabled).

I know how to do it with RabbitMQ, but can it be done with NATS?

I work in Python, the producer process is aiohttp server, the worker processes are also in Python and perform heavy computational tasks.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
ArtiomK, 2021-09-28
@ArtiomK

At the moment the official Python connector does not support NATS/Jetstream issue-209

R
Roman Kitaev, 2021-09-27
@deliro

https://docs.nats.io/jetstream/jetstream

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question