Created 10-20-2021 07:21 AM
Hello Team,
we are having some performance issue when sending data to Kafka using JSON as format. Performs is very slow.
Performance is faster when using DSV parser.
How can we fine tune JSON formatter?
Regards,
Roshan
Created 10-25-2021 01:17 AM
Hello @roshanbi
JSON is one of the best data exchange format which is lightweight and compact. C/DSV can be used when large dataset, with bandwidth limits are to be sent, but DSV cannot be used where the data is complex and unstructured; there comes in JSON.
So, as you said, you are are seeing a better performance with DSV, that is because it does not contain attribute-value pair as in JSON (which makes it structured). To fine tune you application, you can use
Created 10-21-2021 01:12 AM
@roshanbi Can you please confirm the way you are sending the JSON data to the Kafka topic? Are you using kafka-console-producer? Please provide producer.properties file parameters used.
Created 10-25-2021 01:17 AM
Hello @roshanbi
JSON is one of the best data exchange format which is lightweight and compact. C/DSV can be used when large dataset, with bandwidth limits are to be sent, but DSV cannot be used where the data is complex and unstructured; there comes in JSON.
So, as you said, you are are seeing a better performance with DSV, that is because it does not contain attribute-value pair as in JSON (which makes it structured). To fine tune you application, you can use
Created 10-28-2021 11:33 PM
@roshanbi, Has the reply helped resolve your issue? If so, please mark the appropriate reply as the solution, as it will make it easier for others to find the answer in the future.
Regards,
Vidya Sargur,