On 28.2.2013, at 15.13, Damien Churchill <dam...@gmail.com> wrote:

> On 28 February 2013 14:01, Timo Sirainen <t...@iki.fi> wrote:
>> On 28.2.2013, at 12.28, Damien Churchill <dam...@gmail.com> wrote:
>> 
>>> I was wondering if any work had been made (out of tree) or has been
>>> planned for a mongo driver? If not is it something that would be of
>>> any interest for being included?
>> 
>> Have you noticed the memcached and redis backends for lib-dict, and the 
>> passdb/userdb dict? So you'd only need to implement dict-mongodb.c for 
>> Dovecot v2.2. Feel free to start developing. :) v2.2 also has its own 
>> lib-http if that's needed.
>> 
> 
> I hadn't no! That makes things far easier :) Do you have any
> preference on which driver to use? I was thinking of selecting
> libmongo-client[0] as its made its way into repositories unlike the
> official mongo C driver.
> 
> [0] https://github.com/algernon/libmongo-client

Any external library actually makes things more difficult, because they can 
easily only be loaded by the dict server, which means every lookup have to be 
proxied through it (similar problem with dict-sql). Although in v2.2 there's 
some new code for how to load SSL library dynamically only when needed, and the 
same could be done for your dict-mongodb at least in theory..

Reply via email to