Hi,
Could anyone help me connect ktor routing and apache kafka?
I'm trying to learn kafka by implementing it in my client facing rest api microservice. I was stopped when i tried to merge kafka subscriber design and ktor event driven approach.
I managed to successfully send some strings to kafka and made my consumer read them, but i have no idea how in a stateless fashion my kafka consumer/subscriber is supposed to know to who send the http response. When i tried to send ApplicationCall through kafka jackson crashed in an infinite recursion. The only idea i have is to somehow put all the data i need from ApplicationCall into a new value object which i can send through kafka and then use it to create a response, but i don't know how to do it using ktor and it seems too overengineered, there has to be a better way.