RavenDB Multitenancy: what is the real upper limit on the number of sessions per instance?

I wanted to make sure that I was going to do it right. I am developing a multitask application. I plan to create one database for each tenant on one raven instance, but would also like to have one instance of my code base (i.e. One deployed mvc webapi instance).

So, I would call some service locator to get a singleton instance of the document store, and then pass it the tenant ID so that I can work against the corresponding session (one session per db tenant).

Provided that each db tenant is relatively small (in hundreds of thousands of documents), the volume of transactions is quite low (hundreds of users per tenant). Is it realistic to expect to run more than multiple tenants on the same server?

I know this is an open question about oranges to apples, but the answer I'm looking for is either a) yes, this is a standard approach to tiered use of a raven and is limited by hardware, or b) you are mistaken, and this may end after several tenants regardless of memory / processing power.

early

+4
source share
1 answer

Dave, This is a standard approach. You should be able to run at least several hundred tenants in one copy. We saw several tenant servers that have thousands, but which are highly dependent on actual load.

+5
source

Source: https://habr.com/ru/post/1440412/


All Articles