With Mosquitto broker, how to subscribe to a topic and get any message just once -


this newbie question i'm sure, using mosquitto how subscribe retained message , guarantee message once? have paho based java subscriber, , in testing notice is, if subscriber brought down, , restarted pulls of same messages received before came down. (normally stay forever, stuff happens.) , it's critical subscriber each message once. (for use case there 1 subscriber.)

is there built mosquitto provides mechanism or have build data schema , retrieval process?

i see there way of deleting message topic (https://lists.launchpad.net/mosquitto-users/msg00067.html) right topics pretty generic [company]/[mac address]/[topic x] , it's possible have 2 separate messages on queue same topic, , i'm assuming if send empty message given topic i'll end deleting messages of said topic.

thanks in advance on this.

set qos level 2.

qos-level-2: exactly-once delivery. highest level incurs on head interms of control messages , need locally storing messages. exactly-once combination of at-least-once , at-most-once delivery guarantee.


Comments

Popular posts from this blog

java - Suppress Jboss version details from HTTP error response -

gridview - Yii2 DataPorivider $totalSum for a column -

Sass watch command compiles .scss files before full sftp upload -