Idea
Discussion

Send WebSocket message to specific organizational/functional user role

Hello community,

 

There are many business cases where a live update/refresh is needed on the Web client whenever an update happens on the server (say via API integration). This article explains how to send a message to all users or a specific user from the server to the client.

 

Would love a way to send a message to all users of a functional or organizational role. Right now, we will need to programmatic fetch all SysAdminUnitIds of that role and send a message to all users in a loop.

 

Aside, Say there are 10 users (out of 100 total) belonging to a specific user role. Is it/ How much of a performance disadvantage is to send the message to all the 100 users (We can filter the rest 90 on the UI) as against identifying and sending to the specific 10? This depends on the underlying WebSocket implementation and how it is managed by Creatio. 

3 comments

Hello Shrikanth,

 

Thank you for this idea! Yes to send the socket message to the client for a specific role the list of SysAdminUnit Ids should be formed and processed one by one on the server-side. I will share this idea with the core R&D team so they could develop an additional method that could post a message to a user role separately. Thank you for helping us in making the application better!

 

Best regards.

Oscar

Oscar Dylan,

Thanks Oscar. Can you also clarify on my other question at the end? - 



Aside, Say there are 10 users (out of 100 total) belonging to a specific user role. Is it/ How much of a performance disadvantage is to send the message to all the 100 users (We can filter the rest 90 on the UI) as against identifying and sending to the specific 10? This depends on the underlying WebSocket implementation and how it is managed by Creatio.

M Shrikanth,

 

This is a question that is not easy to answer. Perform tests and compare the application performance using different scenarios of sending a message to 10, 50 and 100 users and see how it influences the system.

 

Best regards,

Oscar

Show all comments