Running CXone Java SDK 1.2.4 in a multi-threaded batch job. Creating a single PlatformClient instance per thread causes massive resource exhaustion. The docs are vague on connection pooling. Is the underlying RestClient thread-safe if shared across threads? Or do I need to wrap it in a synchronized block? Tried sharing the client, got intermittent 502 errors. Here’s the init code:
PlatformClient client = PlatformClientFactory.createClient(config);
What’s the best pattern here?