我有一个webservice API允许客户端插入到Cassandra中.我阅读了datastax页面上的文档(http://www.datastax.com/drivers/java/2.0/com/datastax/driver/core/Session.html),声明我们应该保持会话和集群对象,直到申请结束.我想知道我应该在每次web API调用之后调用session.close()和cluster.close(),或者我只是保持会话直到我关闭web服务器?
cassandra datastax-enterprise
cassandra ×1
datastax-enterprise ×1