Skip to content

uWebsockets publish dropping messages #499

@rpgehlot

Description

@rpgehlot

Hi @alexhultman ,
Thanks for this great and efficient library which i have to started to use recently in place of socket.io which was giving us horrible performance in production.
Basically we are using it in context of a trading platform which is in house to our firm. There we get around ~400 msg/sec of ~2KB with ~60 connected websocket clients. We are using uWebsockets pub-sub with maxBackPressure setting of 6KB.
Everything was fine, but we noticed some messages are being dropped. I understand its happening because of built up backpressure because of which it drops messages for slow client or either drops their connection.
Also i tried using ws.send method and manage backpressure using ws.getBufferedAmount() and implement my own pub-sub over it but obviously it was much slower and useless.

I really want to use your library becuase its way efficient than others, but if you can help me to fix this problem of message drop, that would be very grateful of you.

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