Performance Tuning

Component: Azure Table Persistence
NuGet Package NServiceBus.Persistence.AzureTable (4-pre)
This page targets a pre-release version and is subject to change prior to the final release.

General guidelines

Microsoft's Azure Storage Performance Checklist should be considered for performance tips and design guidelines.

Opting out of the compatibility mode

By default the persister runs with the compatibility mode enabled. The consequences of that is for sagas that are correlated by the correlation property value an additional lookup by the secondary index property might happen for sagas that use a secondary index. It is possible to disable the compatibility mode by calling DisableSecondaryKeyLookupForSagasCorrelatedByProperties.

When targeting Azure Cosmos DB Table API, the saga persister secondary lookups might fail due to an empty row key. In such a case, the persister automatically falls back to do a second retrieve attempt assuming the RowKey equal to the PartitionKey. It is possible to opt-out and always assume RowKey = PartitionKey by specifying AssumeSecondaryKeyUsesANonEmptyRowKeySetToThePartitionKey

Related Articles


Last modified