Welcome! Log In Create A New Profile

Advanced

Re: Create a Request from a String

Matthieu Tourne
May 25, 2010 02:18PM
On Tue, May 25, 2010 at 1:19 AM, Piotr Sikora <piotr.sikora@frickle.com>wrote:

> Hi,
>
> I'm trying to store requests that comes in (let's call it request A), and
>> I
>> want to be able to "replay" them later, when another query comes in with a
>> specific argument (request B).
>> I can store the request to memcache, and get it back later. But I can't
>> figure out how to recreate a query from a string.
>>
>
> You can do this with both: ngx_echo [1] and ngx_lua [2].
>
> You should also read agentzh's post on that matter [3],
> it will answer pretty much all of your questions ;)
>
> [1] http://wiki.nginx.org/NginxHttpEchoModule
> [2] http://github.com/chaoslawful/lua-nginx-module
> [3] http://agentzh.spaces.live.com/blog/cns!FF3A735632E41548!560.entry
>
>
Thanks for the pointers, but it doesn't really answer my question.
Agentzh's post shows how to send the content fetched from memcached to the
downstream.

I'm trying to send that content representing a request, to an upstream.
Basically "replaying" a query stored as a string, exactly as if it was
coming from an open socket.

Thank you,

Matthieu.

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

Create a Request from a String

Matthieu Tourne May 25, 2010 01:56AM

Re: Create a Request from a String

Piotr Sikora May 25, 2010 04:24AM

Re: Create a Request from a String

Matthieu Tourne May 25, 2010 02:18PM

Re: Create a Request from a String

agentzh May 25, 2010 09:42PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 150
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