Server-side Lifecycle Hooks #60373
Closed
mostafasalah2023
started this conversation in
Ideas
Replies: 1 comment 1 reply
-
Hi, Those exist:
The second one in particular, is just a Node.js thing, |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Goals
1- On Server Start-up Hook: Helps users set up databases and configurations when the server begins.
2- On Server Shutdown Hook: Assists users in closing database connections and performing clean-up for running services when the server stops.
Non-Goals
Background
Introduce a set of hooks or methods that allow developers to define and execute server-side logic at specific stages of the application's lifecycle, like on server startup or shutdown
Proposal
This proposed feature aims to augment our control over the server-side lifecycle, providing a structured mechanism to initialize and manage services with greater control. By incorporating this functionality, users will be empowered to establish and dismantle services in a controlled, deliberate manner, enhancing the robustness and predictability of server-side operations
Beta Was this translation helpful? Give feedback.
All reactions