data-api-builder icon indicating copy to clipboard operation
data-api-builder copied to clipboard

Refresh HotReload Design Doc

Open seantleonard opened this issue 1 year ago • 1 comments

Objectives

  1. Elaborate on the assertion that IOptionsMonitor is not feasible with examples and error messages

However, after some investigation it became apparent IOptionsMonitor would not be able to integrate easily into dab in such a way that it would automatically handle the hot-reload scenario. Because of the way we instantiate our object model of the configuration file, using IOptionsMonitor in such a way is not possible at this time.

  • Which DAB services don't support this?
  • Example attempt which demonstrates this doesn't work.
  1. Elaborate on why we can't use a custom configuration provider to utilize out of box file change monitoring which translates to raising events that would trigger runtimeconfigprovider to generate new runtime config object.
  • https://learn.microsoft.com/en-us/dotnet/core/extensions/configuration-providers
  • https://learn.microsoft.com/en-us/aspnet/core/fundamentals/configuration/?view=aspnetcore-8.0
  • https://learn.microsoft.com/en-us/dotnet/core/extensions/custom-configuration-provider

seantleonard avatar Jul 12 '24 20:07 seantleonard

@aaronburtle is "in progress" the latest status?

seantleonard avatar Aug 21 '24 23:08 seantleonard