KafkaReceiverPolicy

class KafkaReceiverPolicy(val prefetchBatches: Int = DEFAULT_PREFETCH_BATCHES, val maxDeferredCommits: Int = DEFAULT_MAX_DEFERRED_COMMITS)

Receive-side policy of the Kafka buses.

  • prefetchBatches: Kafka poll batches requested ahead of the downstream.

  • maxDeferredCommits: acknowledged offsets kept for out-of-order commits. Offsets are committed only up to the earliest unacknowledged one, so an aggregate group finishing ahead of an earlier record never commits past it. Reactor Kafka stops polling while this many acknowledged offsets wait for a commit; the buses therefore also commit as soon as that many are waiting (Reactor Kafka's commitBatchSize, capped at this value), so the pause only lasts while an earlier record is still in flight, or a commit is.

Receive retries follow the transport's me.ahoo.wow.messaging.transport.TransportFailurePolicy.

Constructors

Link copied to clipboard
constructor(prefetchBatches: Int = DEFAULT_PREFETCH_BATCHES, maxDeferredCommits: Int = DEFAULT_MAX_DEFERRED_COMMITS)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard