Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handling sticky sessions to the HTTP bridge #125

Open
ppatierno opened this issue Mar 13, 2019 · 3 comments
Open

Handling sticky sessions to the HTTP bridge #125

ppatierno opened this issue Mar 13, 2019 · 3 comments

Comments

@ppatierno
Copy link
Member

Because the HTTP bridge takes trace of the created consumer via an instanceid (after creation), most of the subsequent operations work if the HTTP client connects to the same HTTP bridge instance in a cloud environment with multiple replicas.
We should think about a way for achieving that (i.e. sticky sessions).

@ppatierno ppatierno changed the title Handling sticky session to the HTTP bridge Handling sticky sessions to the HTTP bridge Mar 13, 2019
@rossbrigoli
Copy link

Or at least find a way to propagate consumers to all instances of the Kafka bridge that are connected to the same Kafka cluster. This way the consumer can be created from one bridge endpoint, then the subsequent calls like pulling records can be issued on another bridge endpoint.

@scholzj
Copy link
Member

scholzj commented May 12, 2022

Or at least find a way to propagate consumers to all instances of the Kafka bridge that are connected to the same Kafka cluster. This way the consumer can be created from one bridge endpoint, then the subsequent calls like pulling records can be issued on another bridge endpoint.

I don't think this is desired. Because it would mean that each bridge instance will be assigned some partitions and you will have to make sure in your clients that you are polling for messages on all instances and not just on one.

@echooymxq
Copy link

This seems to be a common problem, and it also exists in confluentinc's kafka-rest. Is there a good solution?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants