Outbox with RavenDB persistence

Component: RavenDB Persistence | Nuget: NServiceBus.RavenDB (Version: 3.x)
Target NServiceBus Version: 5.x

The Outbox feature requires persistence in order to store the messages and enable deduplication.

Extra collections created by the RavenDB Outbox persistence

To keep track of duplicate messages, the RavenDB implementation of Outbox creates a special collection of documents called OutboxRecord.

Deduplication record lifespan

The RavenDB implementation by default keeps deduplication records for 7 days and runs the purge every 1 minute.

These default settings can be changed by specifying new defaults in the settings dictionary:

Edit
busConfiguration.SetTimeToKeepDeduplicationData(TimeSpan.FromDays(7));
busConfiguration.SetFrequencyToRunDeduplicationDataCleanup(TimeSpan.FromMinutes(1));

Related Articles

  • Outbox
    Reliable messaging without distributed transactions.

Last modified