Connection pooling in Couchbase SDK (spymemcached)

Hello,

Couchbase SDKs are thread safe and for Java and .Net, you can use without developing your own pool.

In Java, just create a singleton that initialize the connection to the cluster at startup then get the connection whenever you need it.

You can take a look to the BeerSample Application :
See the ServletContextListener:

And how to get a connection for example in a servlet:

Regards