I would like to cache external API requests with memcache so I don't have to wait for the API to return the data for every request. I have several APIs that I use within one function in a django view. Since this takes a long time to work; is it possible to cache it. Do i need to install anything else to make caching work?
My other option is to break the function apart to speed it up, I am wondering if I can use one web worker that can be assigned to an API request in the view and how to assign the webworker to the task.
Finally, Icing on the cake if you could answer this. Is it possible to have one webworker for each external API request and aggregate it into a dictionary to return for a view? Otherwise, I am thinking I need AJAX for loading a page and I hate javascript.
Thanks!