Re: Non-threaded C++ client

19 views
Skip to first unread message

Stephen Lee

unread,
Oct 17, 2012, 2:55:43 PM10/17/12
to mongod...@googlegroups.com
Hi Victor,

As is, using the C++ driver w/o threads isn't possible, and it would require a lot of effort to remove them.  In fact, w/o threading, you might lose features like connection pooling built into the driver.

As an alternative, you might want to consider using the C driver which isn't multithreaded.  However, the lack of multithreading also means some handicaps: connections to primary/master only, no failover, no secondary connections, no read preference, client gets to handle errors themselves.


-Stephen

On Friday, October 5, 2012 4:14:05 AM UTC-4, Víctor Fernández wrote:
Hi,

is it possible to use the C++ client without threads? I wouldn't like the application to have to use threads and link with pthread because of the client.

Thanks.
Reply all
Reply to author
Forward
0 new messages