Implement a connection pool.