Repository navigation
Is it possible to use multiple threads to consume message, rather than process? #257
Replies: 4 comments 1 reply
|
No, and it's unlikely we will support that. Separating each consumer into its own process isolates the workloads from each other, and allows scaling each independently. I don't think the memory overhead of running separate processes is a big enough problem on modern computing platforms to warrant introducing a shared memory model. |
|
It can help small businesses save lots of money if racecar could support this kind of feature. |
Since you do not plan to support this, I hope you don't mind me pointing out ppl that needs this to karafka as it supports this instead of separate processes (as racecar): https://github.com/karafka/karafka/tree/2.0 |
|
Sure. I would also say that you can use simple process managers such as Foreman to spin up multiple processes in with a shared parent; I don't think the overhead is anything that a small business should be worried about. |


Uh oh!
There was an error while loading. Please reload this page.
we have defined 4 consumers in our project, when starting the project, I have to start 4 process to consume the messages in kafka.
Is it possible to run all consumers in one process? it will significantly reduce the overhead.
e.g.
All reactions