Skip to content

content-type not evaluated on every send request #804

Answered by ppatierno
lowerorbit asked this question in Q&A
Discussion options

You must be logged in to vote

I have a clue ...
Istio is taking the producer connection alive after sending the message, which is something not happening with cURL command.
I was able to reproduce your same behaviour by keeping or not keeping connection alive when sending the two messages one after the other.

When the producer HTTP client keeps the connection alive, it's assumed to be the same producer as before (so it's using the same corresponding Kafka producer internally) so sending always the same embedded format as value. It means going through the same internal message converter, so using always base64 or never base64 depending on which comes first and how the producer is created (for this reason you see this b…

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@lowerorbit
Comment options

Answer selected by lowerorbit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #803 on May 30, 2023 11:56.