Transactions in Scala library

In the Transaction API a com.couchbase.client.java.Cluster is required for Transaction.create. I don’t see a clear way to get a Java Cluster from Scala Cluster. My first approach would be to instantiate a Java and both Scala Clusters in each application.

Are there any objections to this idea?

Hi @zoltan.zvara

Yes, there is no native Scala transactions API at this point, so currently you’ll need to pull in the Java client too and use that. E.g. create both Java and Scala clusters, as you say.

1 Like