Reputation: 61
I want to implement request-response pattern with kafka stream,i use spring boot kafka,which add some data as header,named correlation id,but when the request message processed by kafka stream API,header data would be lost,can't send to response topic! How can i solve it,or use another method??
Upvotes: 0
Views: 1286
Reputation: 191681
You wouldn't have a response for a request other than (201, accepted)
data would be lost
No, it wouldn't
can't send to response topic!
Why not?
How can i solve it,or use another method??
Use WebSockets to get your response.
And you might want to watch this talk that uses multiple Spring apps.
https://www.confluent.io/kafka-summit-lon19/hello-streams-introducing-the-first-streams-mindset/
Upvotes: 1