I’m using Java.
Should I be keeping a client object open permanently (typically that’s not what I’d do with external clients)?
Or should I connect to via the Java API, do what I need to do, then close the client? This is usually a preferable approach for backend work.
Which leads to the second part of the question. How does one tell an APIClient object to disconnect?