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

Re-use client or create new one each time? #783

Open
datdo-msft opened this issue Sep 19, 2024 · 0 comments
Open

Re-use client or create new one each time? #783

datdo-msft opened this issue Sep 19, 2024 · 0 comments

Comments

@datdo-msft
Copy link

Hi, my question is about using the Triton client within a FastAPI server to send requests downstream to Triton. Is it recommended to create a single instance of the Triton client and re-use it for each request? Or should we create a new instance of the Triton client for each new request?

Asking because for streaming requests, the grpc InferenceServerClient only supports one stream at a time. Please let me know and thanks in advance!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant