Path: redb-route/redb.Route/Core/AckMode.cs
Snapshot: redb-route, development snapshot 2026-12-06. This is the development state of the public mirrors; it may differ from the published packages.
License: Apache-2.0. Repository: https://github.com/redbase-app/redb-route
Page: https://redbase.app/src/dev-2026-12-06/redb-route/redb.Route/Core/AckMode.cs
----
namespace redb.Route.Core;
///
/// When a consumer settles the message it received — acknowledges it to RabbitMQ, accepts it on AMQP, commits the
/// Kafka offset, deletes it from SQS, completes it on Service Bus, XACKs the Redis stream entry. One option,
/// ackMode, with the same meaning on every broker consumer.
///
/// It is independent of .Transacted(): the transaction owns the database and the outgoing sends; the
/// acknowledgement of the incoming message is always the consumer's, once, after the transaction has committed.
///
///
public enum AckMode
{
///
/// Settled once the route has run: acknowledged when the exchange ended well (no exception, or one an error
/// handler handled), rejected or released for redelivery when it failed. At-least-once. The default.
///
Manual,
///
/// Settled on receipt, before the route runs — by the broker (RabbitMQ auto-ack, Service Bus receive-and-delete,
/// Redis NOACK) or by the consumer right away (AMQP accept, Kafka offset, SQS delete). A message whose route then
/// fails is not delivered again. At-most-once.
///
Auto,
}