msemys / esjc

EventStore Java Client
MIT License
108 stars 27 forks source link

Use blocking queues to handle congestion more gracefully #56

Closed nilsms closed 4 years ago

nilsms commented 5 years ago

We have seen some issues with 'SubscriptionBufferOverflowException' when large amounts of events are available for reading. The exceptions them selves then cause additional delays. The idea behind this pull-request is to allow for a more grace full handling of congestion. By using BlockingQueue we slow down the fastest code paths when they get to far ahead.