Hi,
Is there any way I can detect my app users internet speeds?
Thanks!
Hi,
Is there any way I can detect my app users internet speeds?
Thanks!
When the connectionās unreliable, itās call āLie-Fiā
https://www.udacity.com/course/offline-web-applications--ud899 (Free course)
Itās might be what youāre looking for
A quick google search (āpython measure internet speed of userā) brought up this :
and this :
Iāve not used them, and Iām sure there are others.
If Iām not mistaken, I think @advancedhealthsys is looking to measure the usersā internet speed.
Those tools, when running, will measure the speed from the Anvil servers to the internet, not the usersās servers, I think ??
That is a good point, I didnāt think of that.
I think the word you used ādetectā is a bit wrong. I think the question could be rephrased as āhow do I initiate a test on the client side to assess their internet speedā.
The way most speed test sites work, is store a bunch of files of various sizes ranging from small to large, locate them on different servers around the world, and then measure how long it takes for the client to download those files.
The reason there are various sizes, is that you can get very different results on different networks.
The reason they are also cached (stored) on different servers in different countries, is the distance the client is from the server, affects the speed. The closer the 2 are, the faster the speed.
You can test the other way around too, by uploading files. Of various sizes, and to various locations too, and time how long it takes.
Iām guessing in the anvil context, you could time how long things take to upload/download, from the client frontend, to the server backend. To make things āmeasureableā the file sizes would probably be in the 1 megabyte range, or multiples.
āSpeedā has several different measures. Colloquially, two of the most common are:
Bitrate is significant for large data transfers. Latency is significant for remote procedure calls (which Anvil is built on).
These figures can also change, depending on when you measure them. On a congested network, speeds will be lower. But congestion itself is variable.