owntracks / booklet

The definitive OwnTracks documentation
http://owntracks.org/booklet/
43 stars 59 forks source link

Please clarify documentation on HTTP vs MQTT #61

Closed jgoerzen closed 9 months ago

jgoerzen commented 4 years ago

Over at https://owntracks.org/booklet/features/android/, it is stated that "it is highly recommended to use HTTP mode on Android 6 and higher". However, it's not stated why, or if that recommendation is still current.

Also, "When using MQTT, the broker connection is not maintained permanently." It's not clear what the consequences of this are. There is a reference to the keepalive interval not changing that behavior. https://owntracks.org/booklet/tech/mqtt/#mqtt says that "MQTT was designed with mobile clients in mind so it doesn't require a persistent TCP connection."

Over at https://owntracks.org/booklet/features/friends/, the discussion is solely about MQTT mode, implying that friends support is impossible with HTTP mode. Yet https://github.com/owntracks/recorder#friends-in-http-mode covers friends in HTTP mode.

I'd like to see:

Some prior discussion on this:

owntracks/android#774 (Dec 2019) implies that MQTT was killing batteries. There was a recommendation in there, not stated in the docs, to avoid websockets. The HTTP recommendation is restated.

owntracks/android#745 (Oct 2019) again restates the aversion to websockets

rhasselbaum commented 2 years ago

I am also looking for a trade-off comparison between MQTT and HTTP. Also using Android.

MM2forever commented 1 year ago

It's 2023 and I still would love to know too ;)