I need to render a page that requires a number of REST API calls to
external web services that take a significant amount of time to return.
What is the best approach to fire all of these calls simultaneously instead
of sequentially?
Should I try something like Celery:
https://groups.google.com/forum/#!topic/web2py/js0VAKK6Dlw
https://code.google.com/p/web2py-celery/
Seems like this approach wasn't fully developed.
I thought about using the web2py scheduler:
http://web2py.com/books/default/chapter/29/04/the-core#web2py-Scheduler
but this seemed more appropriate for background cronjobs (like email
batching), rather than live page rendering.
Also, I'm not sure if it's truly asynchronous.
I realize this usually would be done client side (There are some security
reasons for doing this server-side rather than just JS ajax calls).
I've also read that due to the python UWSGI that true multi-threading might
not be achievable in web2py. Is this the case?
Am I going about this the wrong way and should I use a hammer (node.js)
instead of a nice powertool drill (web2py)?
--
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 [email protected].
For more options, visit https://groups.google.com/d/optout.