Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[client-v2] Reduce client init time #2090

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Conversation

chernser
Copy link
Contributor

@chernser chernser commented Jan 15, 2025

Summary

This PR intend to reduce time of client init. time.

First problem is that client loads server context on start. This PR is moved it to a public method, so application can run it on demand. Client users are applications that can call this method when it is needed. JDBC will call it after creating a client instance.

Second problem is that SSL context is initialized for clients with only unsecure endpoint. This PR will implement loading SSL context only when it is needed.

SSL context is requires for authentication however it means HTTPS is used at transport protocol.

Checklist

Delete items not relevant to your PR:

@chernser chernser marked this pull request as ready for review January 16, 2025 03:19
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
70.0% Coverage on New Code (required ≥ 80%)

See analysis details on SonarQube Cloud

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.

Client.Builder().build() takes 500ms
1 participant