What to keep in mind when using websockets?

0
Hello community,   I was wondering what to keep in mind when using websockets, what are the best practices, which module to use, impact on performance, things to look out for with respect to security?   Thank you !
asked
2 answers
0

Hey Jelle,

You have couple of option with websocket, best one is for sure use Mendix builded widget

Pusher - https://docs.mendix.com/appstore/services/pusher/, it's easy to use and from performance view it's should be fine, down side it's free to use until number of request per day and it's comunited out site of your application if you are using on-premise definitely not widget for you, in that case you can use

EZWebsocket - https://marketplace.mendix.com/link/component/205276  I was testing it locally it's was easy to implement performance was great, only down side publisher is not Mendix and updates are dependent on developer of widget.

Personally if you can I will go with Mendix pusher since is create by Mendix, but if not EZWebsocket will do the pretty much great job as Pusher and always if both not suits you, you can always build your own widget.

Hope this answer your question,

Best regards, Slavko 

answered
1

I believe there is still an issue with running web sockets on clustered (i.e. multi-instance) Mendix applications. As long as you are using a single instance you are fine.

answered