I forgot to mention: you loose all thread management as well.
From: [email protected]
To: removed_em[email protected]
Subject: RE: Combining nginx with a library that manages it’s own
Date: Fri, 21 Feb 2014 11:38:50 +0530
I guess you are looking for an upstream nginx module to talk to
Cassandra in place of the C++ client you mentioned.
I did something similar for talking to Sphinx search platform
(https://github.com/reeteshranjan/sphinx2-nginx-module). There was a C++
client; but if you want nginx to control all connections, the whole
non-blocking I/O etc. you need to really write an upstream module, where
all socket read/writes are done by core nginx code and you need to
provide only hooks. Your hooks would perform the request-response
protocol with the service e.g. Cassandra in your case.