dotnet / dotnet/MQTTnet

Can support save session to disk or database

Open
#2,065 1 comment 0 reactions 0 assignees View on GitHub
feature-request
Dominant language
C#
Stars
5.1k
Forks
1.2k
PR merge metrics
No merged PRs in 30d

Description

### Describe the feature request
Can support save session to disk or database, and reload the session data and message from database or disk after broker restart. Certainly, it should also recover the _unacknowledgedPublishPackets from database if set cleanSession to false. It is useful for our tolerance design

### Which project is your feature request related to?

- Server

### Describe the solution you'd like
Load the session data and put them into MqttSessionsStorage class.

### Describe alternatives you've considered

### Additional context
![image](https://github.com/user-attachments/assets/51ec8aa5-cdb4-4f67-997b-c9545242a88f)

![image](https://github.com/user-attachments/assets/d257394b-f0ca-4151-a284-0bb31e156e2b)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.