Forum: NGINX What's the best way to have some kind of state in a custom module?

Posted by Sergey Zhemzhitsky (Guest)
on 2013-03-03 22:44
(Received via mailing list)
Hello Nginx Gurus,

I'm kind of a newby in nginx plugin development, so trying to understand 
what's the best way to
connect to a proprietary backend system (that provides C API) from 
within nginx plugin?

As far as I understand the best way for such issues is to implement 
custom upstream proxy module but it's
pretty difficult to understand the low level protocol of the backend 
system, so I need to use the API it provides.

Could you suggest where to place the initialization code/connection code 
to the backend system and where to hold
the connection (which must be created only once) to the system itself.

Regards,
Sergey
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.