Kestrel reloadable config #19376
Labels
area-networking
Includes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractions
Done
This issue has been fixed
enhancement
This issue represents an ask for new feature or an enhancement to an existing one
feature-kestrel
Milestone
Is your feature request related to a problem? Please describe.
It's common for an application to add, remove, or reconfigure endpoints via config. That works today for Kestrel but it requires restarting the application to pick up the changes.
For reference, HttpSys supports live adding or removing endpoints in code, but not in config.
aspnetcore/src/Servers/HttpSys/samples/HotAddSample/Startup.cs
Lines 24 to 41 in f6c89c2
Describe the solution you'd like
Have Kestrel's custom configuration binder register for config reload notifications. On config change it would need to diff the changes and update its endpoints. Removing an endpoint should also cause existing connections for that endpoint to gracefully drain and close.
The text was updated successfully, but these errors were encountered: