Synchronous http makes the call and stops further execution until the
result is returned.

Async makes the call and optionally provides a callback so that
further code can be executed while waiting for the response. The way
ajax calls with in javascript, for example.

Seems like basic functionality--strange that something so useful isn't
built in to python in a straightforward way. It would be great if
web2py could do something to address this. There are many use cases
and it's much easier and lighter weight than dealing with threads,
processes, cron, etc. when all that is needed is a quick non-blocking
call.

On Feb 18, 8:52 am, KMax <mkostri...@gmail.com> wrote:
> asynchronous http and synchronous http
> What the difference ?
> On 18 фев, 10:37, Dane <dane.schnei...@gmail.com> wrote:
>
>
>
>
>
>
>
> > Hi,
>
> > I need to make an asynchronous http request to one of my controller
> > functions in order to some lightweight background processing
> > (refreshing some cached objects). I came upon this thread:
>
> >http://groups.google.com/group/web2py/browse_thread/thread/bbe66f1084...
>
> > But the link to the "lola" function posted post by Massimo is broken.
> > Can anyone supply a new link or explain a simple way to make async,
> > ajax-like requests from within web2py? Thanks.
>
> > -Dane

Reply via email to