You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When creating a CouchbaseSession (eg. via CouchbaseSessionRegistry) the underlying AsyncCluster should be shared when using different buckets on the same cluster.
Actual Behavior
The CouchbaseSession internally creates a new AsyncCluster instance for every bucket which is very heavy-weight.
Versions used
Alpakka Couchbase: 1.0.0
Expected Behavior
When creating a
CouchbaseSession
(eg. viaCouchbaseSessionRegistry
) the underlyingAsyncCluster
should be shared when using different buckets on the same cluster.Actual Behavior
The
CouchbaseSession
internally creates a newAsyncCluster
instance for every bucket which is very heavy-weight.https://github.com/akka/alpakka/blob/v1.0.0/couchbase/src/main/scala/akka/stream/alpakka/couchbase/scaladsl/CouchbaseSession.scala#L36-L42
Work-around
By creating the
Bucket
in user code, full control over theAsyncCluster
is available.CouchbaseSession
contains methods to create Akka Streams directly.See Using CouchbaseSession directly
The text was updated successfully, but these errors were encountered: