Giter Site home page Giter Site logo

Comments (5)

ashishdhingra avatar ashishdhingra commented on July 18, 2024

Hi @benjstern,

Good afternoon.

Thanks for posting guidance question. The Amazon.Extensions.Configuration.SystemsManager extends the Microsoft's configuration system by extending the interfaces such as IConfigurationBuilder interface. The AddSystemsManager adds the SystemsManagerConfigurationSource (derived from IConfigurationSource) to the IConfigurationBuilder. When the configuration is built, the configuration source(s) are queried one by one to fetch the parameters from the configuration sources. With it SystemsManagerConfigurationSource, it retrieves the parameters using GetParametersByPathAsync or GetParameterAsync. SystemsManagerProcessor. GetDataAsync() determines whether to get a particular parameter or get parameters by path.

For more details on how Microsoft's configuration system works, please refer Configuration in ASP.NET Core. This provides good overview of built in configuration providers and how custom configuration provider(s) work.

Hope this helps.

Thanks,
Ashish

from aws-dotnet-extensions-configuration.

benjamin-stern avatar benjamin-stern commented on July 18, 2024

Thank you @ashishdhingra ,

Correct me if I am wrong, but SystemsManagerProcessor.GetDataAsync() seems to indicate that if it's evaluated as a path contained in the AWS Secret Manager then it would query them one by one.

But even as an AWS Parameter Store value, there could be multiple queries with each internally calling AmazonSimpleSystemsManagementClient.GetParametersByPathAsync (GetParametersByPathRequest, CancellationToken) so if an exception is thrown no processing will occur even if there were multiple requests made due to the provided NextToken.

Though as far as I can tell there is no way of knowing what the default Max Results are, could be anything.

Is there any event we can latch onto at the beginning of the processing of the data?

from aws-dotnet-extensions-configuration.

ashishdhingra avatar ashishdhingra commented on July 18, 2024

Thank you @ashishdhingra ,

Correct me if I am wrong, but SystemsManagerProcessor.GetDataAsync() seems to indicate that if it's evaluated as a path contained in the AWS Secret Manager then it would query them one by one.

But even as an AWS Parameter Store value, there could be multiple queries with each internally calling AmazonSimpleSystemsManagementClient.GetParametersByPathAsync (GetParametersByPathRequest, CancellationToken) so if an exception is thrown no processing will occur even if there were multiple requests made due to the provided NextToken.

Though as far as I can tell there is no way of knowing what the default Max Results are, could be anything.

Is there any event we can latch onto at the beginning of the processing of the data?

@benjstern Yes you are correct. If the exception occurs, then as per

private async Task<IDictionary<string, string>> GetParametersByPathAsync()
, the request will fail.

If you refer, the BeforeRequestEvent is fired via assignment impl.BeforeRequestEvent += ServiceClientAppender.ServiceClientBeforeRequestEvent. I'm not sure if you could latch on to event at the beginning of the request.

from aws-dotnet-extensions-configuration.

benjamin-stern avatar benjamin-stern commented on July 18, 2024

Thanks for your prompt replies and assistance, it is greatly appreciated.

from aws-dotnet-extensions-configuration.

github-actions avatar github-actions commented on July 18, 2024

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.

from aws-dotnet-extensions-configuration.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.