A DataSource Per Realm

Is it possible to configure / extend Keycloak to make it store each realm in its own data source ? I would assume I would have a master realm with the default datasource but for each new realm I would have an option to assign a different data source.

a keycloak instance per realm would give you something like that… not sure that’s recommended or that fit your use case…