Skip to content

Performance degrades when sending 100s of websocket messages #112

@vmakwana

Description

@vmakwana

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions