Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Retained message store extendable #1663

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

Int32Overflow
Copy link
Contributor

@Int32Overflow Int32Overflow commented Jan 27, 2023

See the issue #1660

Now the interface IMqttRetainedMessagesManager can be used to build your own retained message store. You can set the implementation in MqttServerOptions.RetainedMessagesManager. If no custom RetainedMessagedManger is set, the current one is used.

@Int32Overflow
Copy link
Contributor Author

@chkr1011 What do you think? Does it fit?

@logicaloud
Copy link
Contributor

Is this progressing? I just had an attempt to use events as an extension method for external storage but it is no good (#1763).

The current events work ok as long as one can accept that all retained messages are kept in memory, but now I'm looking for a solution where they can be loaded on demand, i.e. by using the proposed IMqttRetainedMessageManager interface.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants