Class AmqpSource
Assembly: Akka.Streams.Amqp.RabbitMq.dll
Syntax
public static class AmqpSource
Methods
|
Improve this Doc
View Source
AtMostOnceSource(IAmqpSourceSettings, Int32)
Convenience for "at-most once delivery" semantics. Each message is acked to RabbitMQ
before it is emitted downstream.
Declaration
public static Source<IncomingMessage, NotUsed> AtMostOnceSource(IAmqpSourceSettings settings, int bufferSize)
Parameters
Returns
|
Improve this Doc
View Source
CommittableSource(IAmqpSourceSettings, Int32)
The committableSource
makes it possible to commit (ack/nack) messages to RabbitMQ.
This is useful when "at-least once delivery" is desired, as each message will likely be
delivered one time but in failure cases could be duplicated.
If you commit the offset before processing the message you get "at-most once delivery" semantics,
and for that there is a AtMostOnceSource(IAmqpSourceSettings, Int32).
Compared to auto-commit, this gives exact control over when a message is considered consumed.
Declaration
public static Source<CommittableIncomingMessage, NotUsed> CommittableSource(IAmqpSourceSettings settings, int bufferSize)
Parameters
Returns