On 24/04/14 16:50, Wietse Venema wrote: > List: >> On 4/23/14, 3:24 PM, Wietse Venema wrote: >>> List: >>>> Are there any plans or existing projects that support connecting Postfix >>>> to a Cassandra cluster to execute CQL queries for table lookups? Or any >>>> other NoSQL databases? >>> If someone has a plan, then they are welcome to implement it! >>> >>> For a simple example see util/dict_env.c. For more advanced see >>> global/dict_ldap.c or dict_mysql.c. >>> >>> Wietse >>> >> If I had the programming chops I would love to contribute. I am >> curious, is anyone here even interested in using NoSQL databases for >> lookup tables? > It could help to make Postfix scalable. I added memcached support > a year or so ago to enable sharing between hosts in the same network. > The next step would be to enable sharing between data centers. > > Wietse It doesn't look like there is a C client library for Cassandra other than Thrift based
http://wiki.apache.org/cassandra/ClientOptions I am not sure that the Thrift one is being maintained still and it seems not to be the recommended route any longer. Otherwise the work involved will be to make a C client library first before developing postfix dictionary code. There is a Beta C++ library, but I'm not sure if and how it could be linked and called from a C program: https://github.com/datastax/cpp-driver John