Skip to content

Overwhelming AsyncJsPublisher Unbounded In-flight queue #45

Description

@johnboy14

I've been testing the AsyncJsPublisher with data volumes in excess of 100,000 messages a second and it's considerably slower than my own code which uses a bounded ack queue.

I'm seeing average ack latencies in excess of 1 second in some instances whereas my own code is averaging around 4 milliseconds. In both instances my max in-flight queue size is 10,000.

I suggest updating the publishers internals to reject new messages or accept some kind of timeout and if we've exceeded the max in-flight limit, then let the client know they need to slow down.

Right now, I'm pushing more data than the publisher can handle and it's causing a build up in memory pressure and huge thread contention problems.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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