dotnet / dotnet/MQTTnet

Configure reliable messaging / acknowledge on QoS >=1

Open
#1,303 1 comment 1 reaction 0 assignees View on GitHub
question
Dominant language
C#
Stars
5.1k
Forks
1.2k
PR merge metrics
No merged PRs in 30d

Description

### Describe your question
I need QoS 1 or 2. In other words I need the message to be reliably saved on the server before the client consider it done.

### Which project is your question related to?
- Client
- Server

I configured both the client and the server "WithStorage" in order to keep the sent messages until they are sent.
If the client send a message when the server is closed, the message is correctly persisted.
After this, the server starts, but regardless I try to fail the message (ProcessingFailed=true or throwing), the client always delete the persisted message which is lost.

How am I supposed to configure the two parties to avoid message deletion upon server failure?

Thank you

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.