Thanks Fasih for the reply. Are you referring to this module -
https://github.com/bigplum/nginx-tcp-lua-module ?
Also have you looked at the drizzle module (
https://github.com/chaoslawful/drizzle-nginx-module) , on a quick pass it appears to be doing all that I might need, it has custom send/recv handlers, persistent connection to the backend (hopefully the connection doesn't get closed after every request) and also seems to be using a proxy handler encompassing a load balancing handler implemented internally (pardon if I am wrong, spend just a day looking at it). I was trying to use that as a reference to see whether I can get zeromq connections/ handlers plugged in , but if one of the experienced folks here can see a dead end on this path , please warn me early.
The trouble here is a simple proxy module alone wouldn't suffice, since I also need to handle the send/recv part as zeromq has custom sockets and protocol. All it provides is a fd which can be waited on using a epoll loop, but not a regular tcp socket.
Suggestions welcome
Jai