mochi-mqtt / server

The fully compliant, embeddable high-performance Go MQTT v5 server for IoT, smarthome, and pubsub
MIT License
1.3k stars 223 forks source link

Hi, what is the simplest way to make messages can be restored when server cut off? #369

Closed luohao123 closed 3 months ago

luohao123 commented 9 months ago

Currently the messages that not sent to client yet will be wiped out when server down.

I previous using badge, but that very terriable, causing about 5GB trash don't know what's file to my server, almost make my server bumm out.

Can just make offline message restore be an default behavior? Really need it!

werbenhu commented 9 months ago

@luohao123 Since most of our developers lack experience using BadgerDB as persistent data in a production environment, take a look at the configuration modifications and the addition of garbage collection described in #370 to see if they would be helpful for your use of BadgerDB.

werbenhu commented 8 months ago

@luohao123 Could you please check if version v2.6.0 resolves this issue?

luohao123 commented 8 months ago

It's not work , dude.

werbenhu commented 8 months ago

@luohao123 The latest progress is discussed here: #375

werbenhu commented 7 months ago

@luohao123 Could this issue be closed?

werbenhu commented 3 months ago

The issue has been resolved, and due to the lack of feedback over an extended period, we are closing this issue. If there are any further problems, please reopen it.