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. |
Beta Was this translation helpful? Give feedback.
-
It can help small businesses save lots of money if racecar could support this kind of feature.
|
Beta Was this translation helpful? Give feedback.
-
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 |
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
-
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.
Beta Was this translation helpful? Give feedback.
All reactions