Closed shalin-hudda closed 3 years ago
Currently it's not possibile to have more than one replica of the Kafka bridge. This is mostly related on how the consumer part works because an instance of a corresponding Kafka consumer is created on the bridge when an HTTP client consumer connect. Each bridge has its own set of consumers; if you create a consumer on a bridge instance, that consumer has to connect to that instance not another one, there is no consumer instances shared across multiple bridge replicas. The only way to have multiple bridge is having multiple deployment of the bridge and maybe using a reverse proxy (i.e. nginx) in front of those instances in order to forward the traffic to the correct one with clients just connecting to the proxy address but specifying the bridge instance they want to hit.
Okay thank you for letting me know.
Hi @ppatierno, is it still the case in bridge 0.21.5 ?
Yes. It's not going to change.
So is there a way to disable the consumer part of the bridge ? Our use case is to use the bridge to act only as a producer.
It's not possible to disable one part or the other. I opened an issue upstream, maybe if you want you can contribute to it. It's not really and higher priority so contributions are welcome :-)
I want to have at least 2 replicas of Kafka Bridge to build in some redundancy in case of failure. Therefore, I am using the following yml with 2 replicas.
However, when the HTTP consumer tries to fetch records using the polling mechanism, the 1st replica responds as expected with the message but the 2nd replica responds with message not found and a 404 error response.
Following is my topic yaml
Is this an expected response? Why is this happening?