The Outbox feature requires persistence in order to store messages and enable deduplication.
To keep track of duplicate messages, the RavenDB implementation of Outbox creates a special collection of documents called
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:
The cleanup task can be disabled by specifying a large value for
SetFrequencyToRunDeduplicationDataCleanup, for example `TimeSpan.FromYears(20). This can be useful when an endpoint is scaled out and instances are competing to run the cleanup task.
SetFrequencyToRunDeduplicationDataCleanup, the cleanup process will always execute once when the endpoint starts up.