Keycloak with 10 million realms

91 views
Skip to first unread message

Sagun Tumkar

unread,
May 23, 2022, 8:43:37 PM5/23/22
to Keycloak Dev
Hi There,

We are on latest keycloak version with Quarkus distribution. We have a usecase where we will need to create about 10 million realms. Each realm would have limited set of client/groups/users/roles/idps. Most of the realms would have mostly 10/12 clients, 3/5 groups and roles, 20/25 clients.

I am aware that keycloak performance starts degrading when we hit 500 realms mark. But what I understood is that happens only with the admin UI and login flows would still be fine.

I wanted to check if this is the right approach or is there any other way we could achieve this? I don't want to create single realm and add 10 million groups where each group would act as a realm. This approach has security/maintenance issues.

Did anyone setup keycloak for this kind of dataset? I would really appreciate if you could share your findings with the performance and any suggestion on how to do it in better way.

Thanks,
Sagun

Sagun Tumkar

unread,
May 23, 2022, 8:46:56 PM5/23/22
to Keycloak Dev
Sorry for the typo. I meant 10/12 users (not clients).
Reply all
Reply to author
Forward
0 new messages