Skip to content

Clarify IOptionsSnapshot performance characteristics and pipeline recomputation (Fixes #53890) - #56662

Open
Manish-1kumar wants to merge 1 commit into
dotnet:mainfrom
Manish-1kumar:users/manish/issue-53890-ioptionssnapshot-perf-characteristics
Open

Manish-1kumar wants to merge 1 commit into
dotnet:mainfrom
Manish-1kumar:users/manish/issue-53890-ioptionssnapshot-perf-characteristics

Conversation

@Manish-1kumar

Copy link
Copy Markdown
Contributor

Fixes #53890

Summary of Changes

  • Adds a Performance considerations subsection under Use IOptionsSnapshot to read updated data in \docs/core/extensions/options.md.
  • Clarifies that \IOptionsSnapshot\ recomputes options on every new dependency injection scope by executing the full configuration, post-configuration, and validation pipeline.
  • Explains the implications for ASP.NET Core applications where DI scopes align with HTTP requests.
  • Provides architectural guidance on choosing between \IOptions, \IOptionsMonitor, and \IOptionsSnapshot, including strategies for reading current values without per-scope recomputation.

@dotnetrepoman dotnetrepoman Bot added this to the November 2026 milestone Nov 1, 2026
@dotnet-policy-service dotnet-policy-service Bot added dotnet-fundamentals/svc community-contribution Indicates PR is created by someone from the .NET community. labels Nov 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

community-contribution Indicates PR is created by someone from the .NET community. dotnet-fundamentals/svc

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Docs: clarify IOptionsSnapshot<T> performance characteristics

1 participant