<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Hi Jan,<div><br></div><div>I guess you are looking for an upstream nginx module to talk to Cassandra in place of the C++ client you mentioned.</div><div><br></div><div>I did something similar for talking to Sphinx search platform (<a href="https://github.com/reeteshranjan/sphinx2-nginx-module" target="_blank">https://github.com/reeteshranjan/sphinx2-nginx-module</a>). 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.</div><div><br></div><div>Regards,</div><div>Reetesh<br><div><br><div>> From: jan.algermissen@nordsc.com<br>> Subject: Combining nginx with a library that manages it's own threads?<br>> Date: Thu, 20 Feb 2014 19:59:59 +0100<br>> To: nginx@nginx.org<br>> <br>> Hi,<br>> <br>> I would like to connect nginx to the Cassandra NoSQL database.<br>> <br>> There is a C++ library[1] that I could wrap to C to use with nginx.<br>> <br>> However, the library does it's own connection pooling and thread management and I do not really have an idea how that will interfere with nginx's (single)threading model.<br>> <br>> What do you think? Or are you maybe aware of any other C driver for Cassanrda?<br>> <br>> Jan<br>> <br>> [1] https://github.com/datastax/cpp-driver<br>> _______________________________________________<br>> nginx mailing list<br>> nginx@nginx.org<br>> http://mailman.nginx.org/mailman/listinfo/nginx<br></div></div></div>                                          </div></body>
</html>