Schema for backing a multi-tenant SaaS

43 views
Skip to first unread message

Kenneth Cho

unread,
Aug 28, 2018, 3:08:26 PM8/28/18
to ArangoDB
I have an ArangoDB database backing an Apollo server GraphQL API that feeds data to a web application. Currently, the API and application use one database with one graph. This one graph has multiple vertex collections and multiple edge collections. 

We want to scale this application into a multi-tenant SaaS application where different groups of users use different sets of data with no overlap. I am considering changing the structure of the database to support this such that there is,
  • One graph per organization of users
  • One vertex collection per graph
  • One edge collection per graph 
Does it make sense to structure things this way to support multiple groups of users, or do you recommend a different approach? (e.g., multiple databases, specifying ownership using a field in the data).
Reply all
Reply to author
Forward
0 new messages