Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

[FEATURE] create sub-module for kafka proxy #101

Open
jiazhai opened this issue Feb 14, 2020 · 0 comments
Open

[FEATURE] create sub-module for kafka proxy #101

jiazhai opened this issue Feb 14, 2020 · 0 comments
Labels

Comments

@jiazhai
Copy link
Contributor

jiazhai commented Feb 14, 2020

This is the sub task for #57

  • change name of current "impl" to kop-handler
  • add proxy-handler
@jiazhai jiazhai added the type/feature Indicates new functionality label Feb 14, 2020
Demogorgon314 pushed a commit to Demogorgon314/kop that referenced this issue Oct 30, 2023
…eamnative#101)

### Motivation

Currently, a `ConnectionPool` singleton is used to maintain connections
to broker. Each broker has its unique connection. Thus, for different
Kafka clients that produce messages to the same topic, only 1 connection
will be used. This connection might also be used to forward other
requests. It harms the concurrency. What's worse, each connection should
have different sessions (e.g. authentication role) for different
clients.

### Modifications

- Refactor `ConnectionPool` to `ConnectionFactory`, which no longer
maintains a connection cache.
- For each `KafkaProxyRequestHandler`, maintain the following
connections:
- `leaderBrokers`: the map that maps the unresolved address to the
connection of leader brokers that PRODUCE and FETCH requests might be
sent.
  - `metadataBroker`: the broker to query the metadata
  - `groupCoordinator`: the broker for group coordinator requests
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants