VT0906
VT0906

Reputation: 97

multi-tenancy with janusgraph

I have spend some time reading on this subject from different forums and understood to achieve multi-tenancy use partition strategy concept.

But still open questions like below,

1- Using gremlin query how can we connect two different partition strategies at the same, meaning query data from multiple tenants for cross tenanted business analysis case

2 - How do we rebuild only certain partition(one tenant) of graph without impacting other tenant operations

FYI,

My company deals with multiple tenants, writing one tenant data at time, but reading multiple tenants data based on user logged into system.

Upvotes: 2

Views: 648

Answers (1)

stephen mallette
stephen mallette

Reputation: 46226

Using gremlin query how can we connect two different partition strategies at the same, meaning query data from multiple tenants for cross tenanted business analysis case

If you are using PartitionStrategy then it is simply a matter of adding the appropriate "read partitions" to the strategy. For example if there are three tenants, "a", "b" and "c" and you only want to traverse partitions "a" and "c" then construct your PartitionStrategy as:

PartitionStrategy strategy = PartitionStrategy.build().
                                 partitionKey("_partition").readPartitions("a", "c").create()

How do we rebuild only certain partition(one tenant) of graph without impacting other tenant operations

I'm not sure what you mean by "rebuild only certain partition" - if you can clarify your meaning I can try to answer.

Upvotes: 3

Related Questions