ajtack/riak-cpp — Issue #2: Add support for connection pooling (assuming boost::asio sockets)
Author: ajtack
Created: 2011-10-26 16:31:08+00:00
State: open

Before this can reasonably be used by performant server software, connection pooling is a must. To satisfy this issue, the library must support:

* Opaque request queueing (user doesn't know when requests are actually transmitted)
* Protection against delayed responses (connections must be reset between uses)
* Thread-safe usage of at least one connection (many is optional)
* A custom implementation of the above as a subclass of the riak::connection_pool interface.

A complete implementation will also provide a default connection pool implementation, which will include test plans.

The following are optional:

* Assumption of boost::asio sockets as the "connection" representative. Obviating this assumption will be a task for a subsequent milestone.
* Multiple connections (in the default implementation.)