non-blocking http ... will tsnet end up in community?

Charles Warwick charles at techstrategies.com.au
Wed Dec 20 04:27:14 EST 2017


Hi Richard,

> Is it?
> 
> DDoS tools aside <g>, what APIs need more than one call at a time?

Not that I am Tom, but many APIs need different calls to retrieve various pieces of information.  Just as a simple example, if you are writing a weather app and you want to display on one screen the temperatures for multiple cities, you may have to make an API call for each city before you can render the entire screen.

> And since LC is single-threaded, what do you anticipate doing with the data from the multiple requests as it comes in?

The issue is usually that API calls can take time for the server to respond.  By executing them in series, if you had to make 10 calls and each one takes 500ms, that is 5 seconds of delay.

If you can send all 10 requests at once, you are likely to be waiting less than 1 second in total - which makes a significant improvement for user experience.

> This is a serious question.  Most of my work is with small data (<200k) where latency even on shared hosts is minimal.  But needs vary.  I'm interested in understand the problem you're facing.
> 

This may not be the problem Tom is facing, but it is one I deal with regularly.

Cheers.

Charles


> -- 
> Richard Gaskin
> Fourth World Systems
> Software Design and Development for the Desktop, Mobile, and the Web
> ____________________________________________________________________
> Ambassador at FourthWorld.com                http://www.FourthWorld.com
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
> 





More information about the use-livecode mailing list