Thanks Niphold,
But what is you suggestion ? Code example etc...

Le vendredi 14 mars 2014 23:14:27 UTC+2, Niphlod a écrit :
>
> if you do "real-time" calculations while the user presses buttons, it's 
> supposed to return under 300ms. Online book states that part in 
> environments where you do calculations in the background that takes more 
> than 300ms (i.e. not real time).
> "usual" webserver timeout is set to 30-60 seconds. 
>
> On Friday, March 14, 2014 5:30:48 PM UTC+1, Martin wrote:
>>
>> Hi all,
>> Please could anyone help me out, I need to pull some data from some API 
>> (ex: https//xxx/aaa/ etc.) that returns json data type.
>> I will take input from logged-in users (onkeyup event)  with the API 
>> retured json to perform some real-time calculation  and then display the 
>> result to the logged-in user.
>>
>> My question is how can i perform this following Massimo's advices in the 
>> web2py online book,
>>
>> *...Ajax callbacks can be used to perform computations in the background, 
>> but we recommend using cron or a background process instead (discussed in 
>> chapter 4), since the web server enforces a timeout on threads. If the 
>> computation takes too long, the web server kills it. Refer to your web 
>> server parameters to set the timeout value...*
>>
>> * Thanks*
>>
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to