[Java][Flight] Add caching of FlightClients to JDBC
- Linguagem predominante
- Java
- Estrelas
- 94
- Forks
- 152
- Merge médio
- 3d 16h
- PRs com merge (30d)
- 11
Descrição
### Describe the enhancement requested
When getFlightInfo reports a list of endpoints, the driver internally creates a FlightClient for each endpoint that reports a Location. These clients can benefit from being cached/pooled since a server will likely re-use endpoints for subsequent queries. This should likely be a configuration option.
The driver should also check if the Location at an endpoint is the same as the original location used when calling getFlightInfo and avoid creating a new FlightClient in this case.
Investigate using https://github.com/ben-manes/caffeine for caching.
### Component(s)
FlightRPC, Java
Guia de contribuição
Direção de pesquisa
Comece rastreando o caminho de getFlightInfo do driver Java JDBC e investigando como ele cria FlightClients para as Locations retornadas. Investigue o Caffeine conforme sugerido e, em seguida, defina uma opção de configuração para o cache ou pooling de clientes e verifique se a Location original é reutilizada sem criar um cliente duplicado. Está concluído quando os clientes dos endpoints são reutilizados para consultas subsequentes e a Location original evita a criação de um cliente adicional.
Escrita pelo modelo de indexação a partir do texto da issue.
Avaliação
- Stack de tecnologia
- java
- Domínio
- api
- Tipo de issue
- Funcionalidade
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Status de atividade
- Estagnada
- Clareza
- Razoavelmente clara
- Facilidade para iniciantes
- 35/100