Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: #46 support nack delay and ack timeouts #83

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Jul 25, 2021

  1. feat: apache#46 support nack delay and ack timeouts

    * feat: apache#45 `Consumer` now supports `NegativeAcknowledge`
    * add `AcknowledgementTimeout` to `ConsumerOptions`
    * add `NegativeAcknowledgementRedeliveryDelay` to `ConsumerOptions`
    * add `NegativeackedMessageState` to manage nacked messages
    * add `UnackedMessageState` to manage unacked messages
    * add `MessageTracker` to periodically check unacked and nacked messages, on a fixed polling timeout of 10ms
    * add `AwaitingAck` to track both unacked and nacked messages
    * add `InactiveMessageTracker` to reduce overhead when no `AcknowledgementTimeout` or `NegativeAcknowledgementRedeliveryDelay` is configured
    * add `InactiveNegativeackedMessageState` to reduce overhead when no `NegativeAcknowledgementRedeliveryDelay` is configured
    * add `InactiveUnackedMessageState` to reduce overhead when no `AcknowledgementTimeout` is configured
    * update `ConsumerBuilder` to allow setting `AcknowledgementTimeout`
    * update `ConsumerBuilder` to allow setting `NegativeAcknowledgementRedeliveryDelay`
    * refactor `ConsumerChannel` to support `NegativeAcknowledge`
    * refactor `AsyncQueue<T>` to implement missing interface `IAsyncQueue<T>`
    * refactor `BatchHandler<TMessage>` to implement missing interface `IBatchHandler<TMessage>`
    * add `AutoFixture` and `AutoFixture.AutoNSubstitute` dependencies to unit test project
    * add missing `ConsumerBuilderTests` unit tests
    * add missing `ConsumerChannelFactoryTests` unit tests
    * add missing `ConsumerChannelTests` unit tests
    * add missing `ConsumerTests` unit tests
    * add IntegrationTests for consumer ack timout and nack delays
    * skipped integration test `SinglePartition_WhenSendMessages_ThenGetMessagesFromSinglePartition` to avoid CI failures
    * skipped integration test `RoundRobinPartition_WhenSendMessages_ThenGetMessagesFromPartitionsInOrder` to avoid CI failures
    
    Closes: apache#46
    Closes: apache#45
    dionjansen committed Jul 25, 2021
    Configuration menu
    Copy the full SHA
    e7df3a5 View commit details
    Browse the repository at this point in the history