Reputation: 43
I am very new to Apache Kafka and I want my messages to be splitted into chunks when sent to the consumer. When the message bytes larger than the maximum request size, I want them to be splitted into chunks.
So I implemented it, however I want to guarantee that the messages are sent in the same order. How can I achieve this? If you want to review my code, here is the link: https://github.com/beyzayildirim137/msgChunking.git
Hope someone can help.
Upvotes: 0
Views: 2565
Reputation: 378
Ideally Kafka is designed for smaller messages, but if you want to use it to stream large messages then the below strategy can be used (Note: there can be other strategies based on the use case):
I hope this gives you some direction to handle larger messages.
Upvotes: 2