Skip to content

Embed Server Performance Considerations #603

Answered by gi0baro
adeelsohailahmed asked this question in Q&A
Discussion options

You must be logged in to vote

First things first: the embedded server is still marked as experimental. So, while 10s still seems odd, it might be because the shutdown process is not at its best in the embedded server.

More importantly: the embedded server is not designed for that. The idea behind the embedded server is.. well to be embedded. In projects that require more fine-grained control on the bootstrap and teardown phases. Or in general regarding processes management. In short: is designed for pojects like gradio, where they need to also manage a bunch of other stuff within the same process in addition to APIs serving.

So, given your specific use case, I strongly advise you to just switch to CLI – even if perfor…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@adeelsohailahmed
Comment options

Answer selected by adeelsohailahmed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants