Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pass large number of messages with file in docker volume #21

Open
stevehu opened this issue Aug 23, 2021 · 0 comments
Open

pass large number of messages with file in docker volume #21

stevehu opened this issue Aug 23, 2021 · 0 comments

Comments

@stevehu
Copy link
Contributor

stevehu commented Aug 23, 2021

When we produce or consume messages from the backend API, a large number of messages will be passed between the sidecar and the backend API through HTTP requests. The HTTP protocol is not designed to pass a large body of data efficiently and a large body will take a lot of time for JSON parser to convert the string to a JSON array. Depending on the business logic in the backend API, sometimes, the communication between the sidecar and the backend might be the bottleneck. In order to increase the throughput, we can put multiple MBs of data in a text file and only pass the location of the file to the other party for processing or consumption.

As the message is loaded line by line from the file, it is faster than parsing the entire file to JSON first. We need to add this feature to address the initial load performance issue for one of the customers who is trying to load several decades of data from the mainframe to Kafka.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant