apache / apache/arrow-java

[Java][Flight] Add caching of FlightClients to JDBC

未關閉
#157 2 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
Java
星號
94
分支
152
平均合併
3 天 16 小時
30 天內合併 PR
11

描述

### 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

貢獻指南

開啟貢獻指南

研究方向

首先追蹤 Java JDBC 驅動程式的 getFlightInfo 路徑,並調查它如何為傳回的 Locations 建立 FlightClients。依照建議調查 Caffeine,然後定義用於用戶端快取或集區化的設定選項,並驗證原始 Location 會被重複使用,而不會建立重複的用戶端。完成的標準是:後續查詢會重複使用端點用戶端,且原始 Location 不會導致建立額外的用戶端。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
java
領域
api
Issue 類型
功能
難度
4/5
預估耗時
3-5 天
活躍度
停滯
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。