How to Enable Concurrent Processing of Stream Messages #1854
Replies: 2 comments
-
Hello @sandeep2rawat, By default FastStream consumes single message from the Redis Stream before consuming the next message. If you want to process multiple messages at once there are few ways to do it.
You can combine 1 and 2 to consume multiple messages at the same time. |
Beta Was this translation helpful? Give feedback.
-
@sandeep2rawat Redis Stream works the same way with Kafka - so it can't be scaled horizontally using the same group and consumer. |
Beta Was this translation helpful? Give feedback.
-
I am using FastStream to process messages from a Redis stream. My expectation is that the subscriber function (handle) should process the messages concurrently.
However, it seems like each message is processed sequentially, and there is no concurrency in the task execution.
Logs
As you can see from the logs, each message is processed one after the other, waiting for the previous task to finish before the next one starts.
I expected FastStream to handle these tasks concurrently.
Key Points
Questions
Any guidance or suggestions on how to fix this issue would be appreciated!
Beta Was this translation helpful? Give feedback.
All reactions