Optional
batchOptional
bestWith bestEffort: true
(default),
majority
,BatchPublisher
will emit error
events on write failures,With bestEffort: false
,
0
,Optional
bulkOptional
changeOptional
concurrencyMaximum number of messages to be consumed concurrently for this Consumer. Defaults to 1.
Optional
fastMaximum follow-up polling delay in milliseconds. Consumers will fast-poll while concurrency is not reached, and after a message is successfully consumed. Defaults to 10 milliseconds.
Optional
filterGlobal MongoDB filter to apply on change stream.
Optional
groupConsumer group. Defaults to the collection name.
Optional
insertOptional
maxMaximum number of messages per batch to bulk insert.
Optional
maxMaximum number of retries per message. Defaults to 1.
Optional
maxMaximum number of seconds to poll for past messages to consume. Defaults to 3600 seconds (1 hour).
Optional
pollPolling interval in milliseconds. Defaults to 1000 milliseconds.
Optional
visibilityMinimum number of seconds before a published message may be consumed. Defaults to zero.
Optional
visibilityMinimum number of seconds to hide messages from other consumers after receiving. Set at least to 2x of the maximum workload time for message consumption. Defaults to 2 seconds.
Delay before a batch insert.