Outbox with NHibernate persistence

Component: NHibernate Persistence
NuGet Package NServiceBus.NHibernate (6.x)
Target NServiceBus Version: 5.x

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

Table

To keep track of duplicate messages, the NHibernate implementation of Outbox requires the creation of OutboxRecord table.

Deduplication record lifespan

The NHibernate 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 config file using TimeStamp strings:

<appSettings>
  <add key="NServiceBus/Outbox/NHibernate/TimeToKeepDeduplicationData"
       value="7.00:00:00" />
  <add key="NServiceBus/Outbox/NHibernate/FrequencyToRunDeduplicationDataCleanup"
       value="00:01:00" />
</appSettings>

Related Articles

  • Outbox
    Reliable messaging without distributed transactions.

Last modified