sollhui commented on PR #69670:
URL: https://github.com/apache/doris/pull/69670#issuecomment-6517562423

   1. The current solution involves weak references, where the last holder 
releases the resource and it is then reclaimed. This approach does not allow 
for the retention of a connection pool for subsequent reuse. 
   2. For scenarios involving access to Polaris, where the token remains 
unchanged for a period of time, it is precisely the case where client reuse is 
required. 
   3. I believe we can refer to the solution which achieves the following: 
   
   - LRU + TTL: limits the number and duration of clients actively retained in 
the cache. 
   - Additionally, an upper limit is set to maintain the use of weak 
references: clients that are eliminated from the cache but are still being used 
by the business can still be found and shared in the future.
   - Concurrent creation and merging of the same configuration: Avoid creating 
the same client simultaneously by multiple requests.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to