scylladb / gocql

Package gocql implements a fast and robust ScyllaDB client for the Go programming language.

Home Page:https://docs.scylladb.com/stable/using-scylla/drivers/cql-drivers/scylla-go-driver.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

session [goroutine / thread] safety

alidehghan opened this issue · comments

is cluster.createSession is goroutine/thread safe (we can use one single instance in all routines) or it is better to create in any new go-routine?

what if connection drops and new routine needs to find (or reconnect to) new healthy node?