Olivine-Labs / Alchemy-Websockets

An extremely efficient C# WebSocket server.
http://AlchemyWebsockets.net
Other
309 stars 105 forks source link

Performance degrades when sending 100s of websocket messages #112

Open vmakwana opened 9 years ago

vmakwana commented 9 years ago

I have a driver that collects data from a field device using ModbusTCP protocol every 5 seconds and as the responses arrive from driver, the connected websocket clients are sent messages. There are 16 field devices and driver collects 8 data points from each device. There are 16 threads , one for each device and driver will sequentially fetch data from and send message to websocket clients.

So, every 5 seconds there are 128 messages sent via websocket, I found that Alchemy websocket has a message queue. Is this message queue operations give rise to a 30 to 45 seconds latency in HTML5 client updates?