generic resource (connection) pool and balancer