Thanks for your message,
Today I experienced better performance, on average 1.5 seconds.
The setup here is wifi (duh) -> 4G -> internet.
pinging around the world is fast, about 30ms to 135ms.
Diving in to the problem I saw that the DNS server, translating api.spark.io, sometimes is slow. Maybe that’s was the source of the problem. And off course 4G is not as reliable as a copper / fiber connection.
Further more the latency collides with the time difference, sort off, at my clock, 05:00, yours 22:00?
the latency is lowest. Yes I got up early. Earlier, say your time 17:00 - 21:00 the latency is bigger.
As I write this, 24:00 the average response is 1.4 sec. That is from a phone running an app to my spark. path: phone -> 4g(by phone provider) -> cloud -> 4g router(other provider) -> wifi -> spark.
Today I optimized the android app to minimize comms. That helps as well.
For now it’s okay.
I’ll do my demo’s next week while your part off the world sleeps!