I have a JSON object, it is a big object. I need to send (write) it as a Kafka message and it takes a lot of time.
I need a mechanism to stream the JSON object and if it is bigger than 10M, split it into multiple stream messages and then send it.
Please help me to find a best practice.
Thank you.
If it is possible to do decompress in the client. I would do :
160KB is a lot smaller than 10MB and should be easy to streamed. It's similar with what netflix does ( compression ) that's why their movie stream so fast in our TV