Send http request

asked 2020-05-06 15:55:20 -0500

wilson shamim gravatar image

updated 2020-05-06 16:27:27 -0500

jeff gravatar image

here is our flow: Kafka consumer --> apply some basic transformations --> HTTP client. I am consuming data from Kafka in a batch of (say 100). I want to send all these data in a single data (json format) in the http request.

do we have to write a Jython code to send the batch data ?

edit retag flag offensive close merge delete

Comments

Can you clarify a bit more? Are you saying that you want to consume a batch of N=100 records, from Kafka, but then send a single JSON payload containing all 100 of these (possibly in a JSON array) to the HTTP destination?

jeff gravatar imagejeff ( 2020-05-06 16:29:45 -0500 )edit

yes thats right

wilson shamim gravatar imagewilson shamim ( 2020-05-06 16:30:50 -0500 )edit