Getting Started
Architecture
NServiceBus
Transports
Persistence
ServiceInsight
ServicePulse
ServiceControl
Monitoring
Samples

Non-durable gateway deduplication persistence

Component: Gateway
NuGet Package: NServiceBus.Gateway (3.2)
Target Version: NServiceBus 7.x

The non-durable gateway deduplication persistence uses a least-recently-used (LRU) cache. By default this cache can contain up to 10,000 items. The maximum size can be changed using the following API:

var gatewayStorageConfiguration = new InMemoryDeduplicationConfiguration
{
    CacheSize = 50000
};

endpointConfiguration.Gateway(gatewayStorageConfiguration);