Hi Cristiano,
the client libraries already have pluggable persistent store
interfaces used for the inflight messages. We plan to use the same
mechanism. The default persistence implementation stores the data
on disk.
I'm conscious that we are somewhat duplicating the function that is
already in Kura, for the Java client at least. A standalone
"offline buffering" function has been requested many times, and I
don't see an easy way of not duplicating the Kura function.
Ian
On 02/04/2016 06:11 PM, De Alti,
Cristiano wrote:
Hello Ian,
It's more or less the way we implemented this in Eclipse Kura.
Where do you plan to store messages when offline?
Regards,
Cristiano
On 04/02/2016 16:44, Ian Craggs
wrote:
Hello all,
we're starting to implement automatic reconnect and publish
while disconnected (offline buffering) for the
Java, _javascript_ and C clients. I've drawn up a state diagram
of how this might work, which I've attached below.
This means that the application has to call connect before being
able to publish - it doesn't matter whether the
connect call succeeds or not.
Operations are: connect, reconnect, disconnect.
Events are: connectionLost, onConnect
The reconnect operation can occur automatically, or "manually"
when called by the application. Persistent
messages can be managed by API calls before connect is called.
Let me know if you have any thoughts or suggestions.
--
Ian Craggs
icraggs@xxxxxxxxxx IBM United Kingdom
Paho Project Lead; Committer on Mosquitto
_______________________________________________
paho-dev mailing list
paho-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/paho-dev
--
Cristiano De Alti
Principal
Software Engineer
direct:
+39 0433 485468
EUROTECH
Imagine.Build.Succeed.
HEADQUARTERS
EUROTECH S.p.A. – Via
Fratelli Solari, 3/a | 33020 Amaro UD | Italy | Tel.
+39. 0433 485411 | Fax +39. 0433 485499 |
Cap. Soc.
8.878.946,00 € I.V. | P.IVA / C.F.: IT 01791330309 |
REA Udine 196115
www.eurotech.com
____________________________________
Il
presente messaggio ed ogni suo allegato sono
da intendersi inviati esclusivamente agli effettivi
destinatari e potrebbero essere soggetti a
restrizioni legali. Se avete ricevuto questo
messaggio per errore vi invitiamo a darne immediata
notifica al mittente e cancellarlo dal vostro
sistema. Qualsiasi altro uso di questo messaggio da
parte vostra e' strettamente proibito.
This e-mail, and any file
attached to it, is meant only for the intended
recipient of the transmission and may be a
communication privileged by law. If you have
received it in error, please notify the sender
immediately and delete the original from your
system. Any other use of this e-mail by you is
strictly forbidden.
____________________________________
Per favore,
pensate all’ambiente prima di stampare questa
e-mail. Please consider the
environment before printing this e-mail.
_______________________________________________
paho-dev mailing list
paho-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/paho-dev
--
Ian Craggs
icraggs@xxxxxxxxxx IBM United Kingdom
Paho Project Lead; Committer on Mosquitto
|