Skip to content

[rest] Make http client reusable to reduce connection cost#5145

Merged
JingsongLi merged 3 commits intoapache:masterfrom
JingsongLi:staticHttpClient
Feb 25, 2025
Merged

[rest] Make http client reusable to reduce connection cost#5145
JingsongLi merged 3 commits intoapache:masterfrom
JingsongLi:staticHttpClient

Conversation

@JingsongLi
Copy link
Contributor

Purpose

The general recommendation is to reuse the HttpClient to improve the performance of the connection pool. Our HttpClient can be placed in a static variable for reuse, which can be beneficial for us to create Catalogs more freely to fetch certain data and close the Catalogs。

Tests

API and Format

Documentation

@jerry-024
Copy link
Contributor

As there are currently no concurrent calls to the RESTCatalog server, it is sufficient to use the default settings.
LGTM

@JingsongLi JingsongLi merged commit 2439452 into apache:master Feb 25, 2025
12 of 13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants