-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Guidance on using App Configuration on Multi-Tenant applications #293
Comments
+1 |
This doesn’t answer the question, I’ve already read that article before
commenting. There’s no info about handling multitenant configs there,
except for advice to use tenantId as key prefix. I guess I might use
OptionsBuilder (or better IOptionsFactory, to avoid scope problems) in pair
with my implementation for scoping tenant info (e.g. ITenantProvider,
wrapped around IHttpContextAcessor), but I still can’t find elegant
solution. Also, how would I handle non-nested config values? Should I put
everything inside IOptions? I don’t think so
Сб, 18 нояб. 2023 г. в 03:44, Zhenlan Wang ***@***.***>:
…
https://learn.microsoft.com/en-us/azure/azure-app-configuration/howto-best-practices#multitenant-applications-in-app-configuration
—
Reply to this email directly, view it on GitHub
<#293 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHNIUQOOPKRP3YRKYWMUKYDYFAHIXAVCNFSM5IS2GPK2U5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TCOBRG4ZTCNJVGE3A>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Hi @ielcoro @lubgi, I'm also finding an architecture for App Configuration in a multitenancy setup. It's not much information about that, I found this article, which has a little bit of related information. |
Stuck with same issue, can anyone help? |
@lubgi @ielcoro @vienleidl @Kashif-datamagnetics I'll say my understanding of your problem first before suggestions. It seems that you want a way to load some configuration that is dependent on a runtime tenant information. This information is taken from an incoming request. Given these assumptions, these configurations cannot be loaded at startup, and since our dynamic refresh mechanism is based on loaded settings at startup, there is no direct way to achieve your scenario with this library. However, you can still use our service and instantiate a ConfigurationClient instance that can pull specific configuration given runtime tenant information. Please correct my understanding of your problem and let me know if this suggestion helps! |
@drago-draganov do you have any suggestions? 👀 |
I'm not able to find any documentation or examples about using App Configuration on multi-tenant applications. I can only find documentation on how to map on startup to specific labels or prefixes, however in a multi-tenant application, for example an api that servers requests to multiple tenants, you need to filter the configuration on a per-request basis, loading the current tenant from the current request info.
How can we implement such scenario using App Configuration? We thought about using named options and IOptionsSnapshot, however we didn't find any info on what is the relation between named options and Azure App Configuration settings.
The text was updated successfully, but these errors were encountered: