Skip to content

Java: how long should I use a session #16712

Answered by Craigacp
huehnerlady asked this question in Other Q&A
Discussion options

You must be logged in to vote

The session object owns the model and should be a long lived object. If your JVM is up for weeks and you need inferences constantly during that time I don't see a reason not to keep the session up. If your inference needs are bursty then you can bring up a session and tear it down when the burst passes.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by huehnerlady
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants