MQTTnet icon indicating copy to clipboard operation
MQTTnet copied to clipboard

Retained message store extendable

Open Int32Overflow opened this issue 2 years ago • 2 comments

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 avatar Jan 27 '23 18:01 Int32Overflow

@chkr1011 What do you think? Does it fit?

Int32Overflow avatar Feb 14 '23 07:02 Int32Overflow

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.

logicaloud avatar Jun 14 '23 06:06 logicaloud