Replies: 2 comments 2 replies
-
does this not help? https://micronaut-projects.github.io/micronaut-data/latest/guide/#multitenancy |
Beta Was this translation helpful? Give feedback.
1 reply
-
Please don't use thread-local but our new propagation API. (see Core docs) |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I want to achieve multi tenancy using MongoDB , I am using Micronaut Kotlin with Micronaut-data for database connectivity.
I am not using HttpTenantResolver provided by Micronaut. I wrote my own logic in filter chain.
Now I have the tenant-id depend ending on that with some logic I want to override the mongoDb connection String mentioned in my application.yml . can anyone please help me how I can do that ?
and I avoided in built HttpTenantResolver because I don't know how many tenants will be there. It will dynamically increase - for each tenant database will be different with common collection schema ( with different data in it ). That's why it's impossible to maintain all the datasource connection string in Yml. It should be built dynamically in runtime.
thanks in advance
Beta Was this translation helpful? Give feedback.
All reactions