darwin.godavari | 2022-08-31 02:29:20 UTC | #1
I am developing CTI connector which subscribes to Notification API for real time agent event notifications.
Scenario :
I am using one pair of client id and client secret. So I can create 20 channels.
I want to know if I can ..
- Create 20 NotificationHandler instances(Java Object instances) using 20 different channels.
- Each NotificationHandler creates one web socket connection.
- One web socket connection can subscribe to 1000 topics.
- So 20 NotificationHandler instances create 20 web socket connections.
Finally , using one pair of client id and client secret , I can subscribe to 20, 000 topics(20 * 1000).
Is my understanding correct?
Ref : https://developer.genesys.cloud/notificationsalerts/notifications/ Section : Usage Limitations.
regards Darwin Anirudh
Jerome.Saint-Marc | 2022-08-31 14:00:50 UTC | #2
Hello,
That's correct.
Regards,
darwin.godavari | 2022-08-31 14:01:05 UTC | #3
Thanks @Jerome.Saint-Marc for swift reply
tim.smith | 2022-08-31 14:31:43 UTC | #4
@darwin.godavari I would very strongly recommend using Event Bridge for this type of integration. WebSocket notifications are intended for single client applications. While you are able to use up to the limits you've described, you'll be operating at the extreme end of the allowed scale and you'll be unable to scale up further if you add more agents or topics. Using event bridge completely eliminates that scale concern and will make managing this kind of integration much easier. You also get guaranteed delivery of notifications where WebSocket notifications are fire-and-forget with no guarantee that your app will receive them.
You can read more about event bridge here: https://developer.genesys.cloud/notificationsalerts/notifications/event-bridge
darwin.godavari | 2022-08-31 21:58:56 UTC | #5
Thank you so much Tim for the suggestion.
To be honest , we dont plan to subscribe more than 5000 topics(highly worst case scenario) for one instance of our application.
Do you still see a bottle neck ?
Note : It is too late to change our design and we are okay with web socket fire and forget at the moment atleast for the first release of our application.
John_Carnell | 2022-09-16 12:41:21 UTC | #6
This post was migrated from the old Developer Forum.
ref: 16079