I'm trying to understand how Keycloak can be used in a large scale multi-tenanted scenario.
The standard approach seems to be to use a realm for each tenant. This isolates each tenant's users and settings and makes a lot of sense.
In the Keycloak example for multi-tenanting it says it "demonstrates the simplest possible scenario for Keycloak Multi Tenancy support" (emphasis mine). I might be reading too much into this, but to me that implies there are other standard approaches. I haven't been able to find much discussion about these options though.
I've also read that there are potentially performance issues with more than 100 realms. It might be that these performance issues have been fixed, but this also suggests to me that Keycloak wouldn't handle a large scale multi-tenanting scenario with 1,000+ tenants.
So my questions are:
- Are there any other recommended approaches for multi-tenanting, other than "one realm per tenant"?
- Are there any large scale multi-tenanting deployments of Keycloak in the wild that demonstrate its ability to cope with lots of realms?
- Are there any recommendations for sources of information that I should be looking at?