Welcome! Log In Create A New Profile

Advanced

Memcached/JSONP

December 19, 2009 04:08PM
Hello!

We have an API which makes heavy use of JSONP.
In context, that means the body of the response from our API must be wrapped in a callback parameter that's passed in the same request.

We currently store the JSON output from our API in Memcached, and on subsequent requests, we jump into our application, pull the JSON output out of Memcached, wrap the output in the callback parameter, and return the response. This works OK, but we'd much rather utilize Nginx and its Memcached module.

So, I was thinking it would be great if we could do the following. We would store the JSON output from our API in Memcached, base on the URI. On subsequent requests, the key would be found via the Memcached module, and the output wrapped in the current requests callback parameter. This way we wouldn't need to jump into our application, and everything would be handled via Nginx.

This would obviously require some customizations/extensions to the Memcached module, and wanted to get some feedback to see if this scenario was plausible, if there were better approaches, etc.

Any suggestions, etc, would be greatly appreciated,
Thanks!
==
Dylan
Subject Author Posted

Memcached/JSONP

dylanz December 19, 2009 04:08PM

Re: Memcached/JSONP

Peter Leonov December 19, 2009 06:40PM

Re: Memcached/JSONP

dylanz December 19, 2009 08:25PM

Re: Memcached/JSONP

Peter Leonov December 19, 2009 09:14PM

Re: Memcached/JSONP

agentzh December 20, 2009 09:16PM

Re: Memcached/JSONP

dylanz December 20, 2009 11:33PM

Re: Memcached/JSONP

Marcus Clyne December 21, 2009 02:20AM

Re: Memcached/JSONP

agentzh December 21, 2009 04:44AM

Re: Memcached/JSONP

agentzh December 21, 2009 04:50AM

Re: Memcached/JSONP

Marcus Clyne December 21, 2009 06:44AM

Re: Memcached/JSONP

agentzh December 21, 2009 05:20AM

Re: Memcached/JSONP

Marcus Clyne December 21, 2009 06:28AM

Re: Memcached/JSONP

dylanz December 19, 2009 09:31PM

Re: Memcached/JSONP

Peter Leonov December 19, 2009 10:12PM

Re: Memcached/JSONP

dylanz December 20, 2009 12:54AM

Re: Memcached/JSONP

dylanz December 21, 2009 01:16PM

Re: Memcached/JSONP

dylanz December 21, 2009 06:44PM

Re: Memcached/JSONP

dylanz December 21, 2009 07:58PM

Re: Memcached/JSONP

agentzh December 21, 2009 08:38PM

Re: Memcached/JSONP

dylanz December 22, 2009 04:01PM

Re: Memcached/JSONP

Marcus Clyne December 22, 2009 04:40PM

Re: Memcached/JSONP

agentzh December 22, 2009 11:10PM

Re: Memcached/JSONP

dylanz December 22, 2009 07:36PM

Re: Memcached/JSONP

agentzh December 22, 2009 10:58PM

Re: Memcached/JSONP

dylanz December 23, 2009 12:12AM

Re: Memcached/JSONP

agentzh December 23, 2009 12:52AM

Re: Memcached/JSONP

agentzh December 23, 2009 12:58AM

Re: Memcached/JSONP

Marcus Clyne December 23, 2009 05:42AM

Re: Memcached/JSONP

Marcus Clyne December 23, 2009 05:22AM

Re: Memcached/JSONP

Marcus Clyne December 23, 2009 05:34AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 74
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready