Quantcast
Channel: StackExchange Replication Questions
Viewing all articles
Browse latest Browse all 17268

In ArangoDB, can we do geo distributed sharding

$
0
0

The use case is that we have customers in US, EU and China. Due to legislation, EU customers data should not be stored outside EU, US customers data should not be stored in China. Due to performance, data should be as close to the customer as possible, and should be replicated/redundant as much as possible. So the plan is split the customers data into 3 shards, customer_us, customer_eu, customer_cn, and have 3 data-center, California, Beijing and Geneva, such that:

  • Beijing holds customer_cn
  • California holds customer_cn and customer_us
  • Geneva holds customer_cn, customer_us and customer_eu

Now the whole example is taken from http://orientdb.com/docs/2.1/Distributed-Sharding.html , but OrientDB has the concept of Class and Inheritance. AFAIK, ArangoDB shards by shard key. My question is

  1. Can we do the same sharding using ArangoDB shard key, and how do we configure sharding and replication as such?
  2. If we have associated data, say "invoice", such that each invoice must belong to one and only one customer, can we automatically, somehow, distributed them in the same manner without taking care of shard key?

Viewing all articles
Browse latest Browse all 17268

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>