Reputation: 77
Willing to use multi-tenancy by assigning a keyspace for each tenant using cassandra Java driver. However, it seems that the keyspace (documentation) is an annotation when defining objects so it will be hard switching tenant depending on some users credential attributes.
In that case, is logic discrimination of data is unique solution by adding a tenant to the partitioning key?
PS: for example Hibernate offers 3 types of multitenancy documentation hibernate
Upvotes: 0
Views: 101
Reputation: 539
Its not compulsory to use annotation based approach, cassandra java driver needs only host details to connect to cluster, after that you can run any query. you can use a prepared query with specified keyspace. also you can create keyspace dynamically using java driver.
Upvotes: 2