Welcome! Log In Create A New Profile

Advanced

Re: In-process key/value (session) store option. . .?

agentzh
January 06, 2010 01:00AM
On Wed, Jan 6, 2010 at 12:43 PM, David Dabbs <dmdabbs@gmail.com> wrote:
>  * Search an in-process hashtable using a value from a request parameter or
> header. (think session cache with expiry)
>  * If the key is not found, then call out to some distributed cache backend
> (e.g. Memcached, Redis, Tokyo) to get the value.
>  * Add a new request header with the fetched value.
>  * Proxy forward the request upstream.
>

Just some random nginx config trying to give myself a big picture and
think aloud:

location /foo {
# XXX search in-process cache...
eval $val {
set $memcached_key $arg_foo;
memcaced_pass some.host:11211; # tokyotyrant, memcached, or etc
error_page 404 = @bar;
};
more_set_input_headers 'X-My-Header: $val';
# XXX put $val into in-process cache...
proxy_pass 'http://blah.blah.blah';
}
location @bar {
echo "";
}

The "# XXX" part is something that is missing atm :P

To be honest, I've also been thinking about building such a module
myself. Will you join the development? (Even though I'm still
polishing ngx_drizzle and ngx_oracle with chaoslawful right now ;))

Cheers,
-agentzh

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

RE: In-process key/value (session) store option. . .?

David Dabbs January 05, 2010 11:50PM

Re: In-process key/value (session) store option. . .?

Piotr Sikora January 06, 2010 12:36AM

Re: In-process key/value (session) store option. . .?

agentzh January 06, 2010 01:00AM

Re: In-process key/value (session) store option. . .?

Ryan Malayter January 06, 2010 08:52AM

Re: In-process key/value (session) store option. . .?

agentzh January 06, 2010 09:22PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 138
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready