published message store by mosquitto broker when subscriber is offline with QOS=2

余生颓废 提交于 2019-12-06 05:21:14
  1. Yes, there is a file (mosquitto.db). You can control where this file is written to disk in the mosquitto.conf file autosave* and persistence* options

  2. Messages are stored as long as there are persistence sessions and the limit is disk space (or possibly 2-4gb for 32bit mosquitto). But either way that is a LOT of messages (unless you have stupidly large messages)

  3. It depends on you message rates and the number of publishers/subscribers

  4. Yes session persistence is kept in the same db file so state is maintained over mosquitto restarts

  5. Again this really depends on how many publishers/subscribers you have and what the message rates are.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!