Pulse.Mqtt.Storage.SqlServer
2.29.0
dotnet add package Pulse.Mqtt.Storage.SqlServer --version 2.29.0
NuGet\Install-Package Pulse.Mqtt.Storage.SqlServer -Version 2.29.0
<PackageReference Include="Pulse.Mqtt.Storage.SqlServer" Version="2.29.0" />
<PackageVersion Include="Pulse.Mqtt.Storage.SqlServer" Version="2.29.0" />
<PackageReference Include="Pulse.Mqtt.Storage.SqlServer" />
paket add Pulse.Mqtt.Storage.SqlServer --version 2.29.0
#r "nuget: Pulse.Mqtt.Storage.SqlServer, 2.29.0"
#:package Pulse.Mqtt.Storage.SqlServer@2.29.0
#addin nuget:?package=Pulse.Mqtt.Storage.SqlServer&version=2.29.0
#tool nuget:?package=Pulse.Mqtt.Storage.SqlServer&version=2.29.0
Pulse.Mqtt.Storage.SqlServer
Durable session and offline-message stores backed by SQL Server. Use it when subscriptions, in-flight QoS state, and queued outbound publishes must survive process restarts in a server database.
Install
dotnet add package Pulse.Mqtt.Storage.SqlServer
Configure with dependency injection
var storage = new SqlServerStorageOptions
{
SchemaName = "mqtt",
TablePrefix = "Device7",
};
builder.Services
.AddPulseMqttClient("telemetry", configure)
.UseSessionStore(_ => new SqlServerSessionStore(connectionString, storage))
.UseMessageStore(_ => new SqlServerMessageStore(
connectionString,
new OfflineQueueOptions
{
Capacity = 10_000,
Overflow = OverflowPolicy.Block,
IncludeQos0 = false,
},
storage));
Configure directly
var storage = new SqlServerStorageOptions { TablePrefix = "TelemetryWorker" };
var options = new ResilientMqttClientOptions
{
Connect = new MqttConnectPacket
{
ClientId = "telemetry-worker",
CleanStart = false,
SessionExpiryInterval = 300,
},
SessionStore = new SqlServerSessionStore(connectionString, storage),
MessageStore = new SqlServerMessageStore(
connectionString,
new OfflineQueueOptions { Capacity = 10_000 },
storage),
};
The connection string must point at an existing SQL Server database. The stores create their schema and tables on first use when the login has permission. Use a distinct TablePrefix per logical client or deployment slot so one client does not own another client's session and offline queue rows.
Full docs: https://araxis.github.io/pulse-mqtt/packages/storage-sqlserver
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Microsoft.Data.SqlClient (>= 6.1.4)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 9.0.17)
- Microsoft.Extensions.Logging.Abstractions (>= 9.0.17)
- Microsoft.Extensions.Options (>= 9.0.17)
- Pulse.Mqtt.Core (>= 2.29.0)
-
net8.0
- Microsoft.Data.SqlClient (>= 6.1.4)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 9.0.17)
- Microsoft.Extensions.Logging.Abstractions (>= 9.0.17)
- Microsoft.Extensions.Options (>= 9.0.17)
- Pulse.Mqtt.Core (>= 2.29.0)
- System.IO.Pipelines (>= 9.0.17)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 2.29.0 | 158 | 7/9/2026 |
| 2.29.0-preview.219 | 87 | 7/9/2026 |
| 2.29.0-preview.218 | 91 | 7/9/2026 |