Is it possible to scale WebSocket connections for concurrent bot interactions in Genesys Cloud without hitting rate limits?
We are running JMeter scripts to simulate high-concurrency voice calls and bot interactions. The test setup uses 500 concurrent threads, each initiating a WebSocket connection to the platform API for real-time event streaming. The goal is to validate bot response times under load.
However, we are encountering connection drops and timeout errors after about 200 concurrent sessions. The error log shows:
WebSocket connection failed: 429 Too Many Requests
Endpoint: wss://api.mypurecloud.com/api/v2/analytics/events/stream
The JMeter config includes a constant throughput timer set to 100 requests/minute per thread group. We have verified that the OAuth tokens are valid and refreshed correctly. The issue persists even when reducing the concurrency to 300 threads.
Are there known limits on WebSocket connections for the analytics events stream? Or is there a best practice for handling high-concurrency bot interactions via the platform API? Any insights on optimizing the JMeter script for this scenario would be appreciated.