Multi-rental with Clojure & Datomic

What (if any) are the current settings for Clojure, Datomic, and multi-tenancy? Is this what is useful for using existing Java libraries? Or would there be a more direct way to apply roll-you-s own solution in Clojure?

I am completely new to Datomic and Clojure and will be open to any new paradigms on how they can effectively solve this problem. I am interested in all rental options, but if you need more information, then at this early stage I tend to:

  • Single db
  • Multiple tenants using the same tables and shared data using unique tenant keys
+6
source share
1 answer

The simplest thing you could do is put a tenant key attribute for each of your properties. Then, for any request you want to make, you can restrict it to the tenant key:

[:find ?n :where [?c :account/name ?n] [?c :tenant/key :tenant.key/acme]] 
+3
source

All Articles