How to properly reuse connections in GO SDK? should I cache “cluster” and “bucket” connection or just reconnect for every time?
Hey @llcan1120,
You should build singleton bucket connections and resuse them as much as possible. There is a relatively high cost associated with building the bucket connections, but they are entirely goroutine safe and many goroutines can be simultaneously performing operations with the cluster.
Cheers, Brett