-
In the docs you guys mention that to achieve multitenancy one should create a schema and a own instance of kratos for each tenant. From what I read in the cloud docs you are using this approach in the cloud as well.
thanks in advance! Fabio |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
Hello Fabio, the guidance you find in the docs will not scale to hundreds of thousands of tenants unless you invest significant amount of resources on memory, CPU, storage, and database administration, SRE, operations, migrations, ... It still will scale much better than Keycloak which is known to have serious issues when scaling to more than 100 tenants (keycloak/keycloak#11074), but it will be a challenge, like running 5000 Kubernetes clusters. In our cloud system we have spent an almost ridiculous amount of engineering and planning to build a multi tenant system which scales to millions of tenants. Our core team (myself included) has been working on this since early 2019 under guidance from cloud veterans like Lloyd Taylor and Lee Atchison as well as others. None of that source base is open source and it never will be. Multi-tenant architectures using purely open source will always be limited by the things stated above (memory, cpu, db, ops, sre). Having said that we are already in conversation with major cloud providers to offer Ory technology as a multi-tenant system through our Ory Network system. We can spin up thousands of tenants within milliseconds and by using simple API calls line Hope this helps! |
Beta Was this translation helpful? Give feedback.
-
Thanks for the explanations. Is it possible to explain why Kratos does not support multi-tenancy, and what is really meant by multi-tenancy? I also found myself confused with this statement on Kratos documentation. |
Beta Was this translation helpful? Give feedback.
Hello Fabio, the guidance you find in the docs will not scale to hundreds of thousands of tenants unless you invest significant amount of resources on memory, CPU, storage, and database administration, SRE, operations, migrations, ... It still will scale much better than Keycloak which is known to have serious issues when scaling to more than 100 tenants (keycloak/keycloak#11074), but it will be a challenge, like running 5000 Kubernetes clusters.
In our cloud system we have spent an almost ridiculous amount of engineering and planning to build a multi tenant system which scales to millions of tenants. Our core team (myself included) has been working on this since early 2019 under guidance…