Skip to content
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

Open
ielcoro opened this issue Nov 23, 2021 · 8 comments
Open

Guidance on using App Configuration on Multi-Tenant applications #293

ielcoro opened this issue Nov 23, 2021 · 8 comments
Assignees
Labels
question Further information is requested

Comments

@ielcoro
Copy link

ielcoro commented Nov 23, 2021

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.

@lubgi
Copy link

lubgi commented Nov 18, 2023

+1
@ielcoro
Have you found a solution for this or ended up using something else? I'm stuck with the exact same problem and doing some research. Without per-request configuration binding, it doesn't really make much sense to use App Configuration, since developing a custom solution or using Spring Config + DB/Redis (which is an option for me) doesn't sound that crazy

@lubgi
Copy link

lubgi commented Nov 18, 2023 via email

@lubgi
Copy link

lubgi commented Jan 29, 2024

@zhenlan @ielcoro any updates on this?

@vienleidl
Copy link

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.

@Kashif-datamagnetics
Copy link

Stuck with same issue, can anyone help?

@samsadsam
Copy link
Contributor

@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!

@samsadsam
Copy link
Contributor

@drago-draganov do you have any suggestions? 👀

@samsadsam samsadsam moved this from Todo to In Progress in AppConfiguration-DotnetProvider Oct 24, 2024
@samsadsam samsadsam self-assigned this Oct 24, 2024
@samsadsam samsadsam added the question Further information is requested label Oct 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
Status: In Progress
Development

No branches or pull requests

6 participants