Welcome! Log In Create A New Profile

Advanced

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

Sergey Zhemzhitsky
March 03, 2013 04:44PM
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



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

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

Sergey Zhemzhitsky March 03, 2013 04:44PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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