Posted on 31/08/2023 10:53:24
Hi Adrian,
This is a symptom of something else. That the use of this feature is as wide-spread as it seems to be indicates to me that there's something else very wrong, but it's not clear to me what that is. I would have assumed it was clearing of caches -- which we want to support in a better way -- after manual changes to the database -- which, on the other hand, is not recommended -- but you specify that you need to restart the application for "various reasons". This sounds really bad to me. It seems that restarting the app was used as something of a band-aid. I'd prefer to fix the underlying reasons why is necessary to do rather than just re-introduce the nuclear option, but we need to know about those other situations so we can see how we can implement something to mitigate those issues.
From a practical and technical point of view, it cannot be implemented so it works consistently without having direct access to the hosting environment.
For hosting in IIS, we might be able to get away with it, but since the feature requires some external assemblies to interact with IIS, we would not want to distribute them with the app package -- I'm not even sure those assemblies have been updated to run on .NET Core/.NET 7. It could be distributed as a separate package in the AppStore, but you would have to make sure to uninstall that package if you ever move hosting away from IIS.
For containerized hosting, we would need access to the orchestration platform in order to restart the container/pod. That is most likely never going to happen -- especially if the hosting environment is managed in an external or self-hosted cloud like Azure, AWS or K3s.
In the case that the app is running directly from a command line, it is probably running locally and restarting it would be simple to do outside the app itself.
For all the reasons listed above, I do not expect that we're bringing the feature back for DW10.
- Jeppe