Description
We need to refactor the current Healthcheck implementation in the Boilerplate project to improve reliability and clarity, especially around storage validation and caching behavior.
Problems
Currently, the Healthcheck logic has a few limitations:
-
Storage handling is unclear and split without proper abstraction
-
No unified storage health strategy
- There is no clear interface or abstraction layer to handle different storage types consistently.
-
Cloudflare caching is not considered in healthcheck
- Healthcheck responses may be cached by Cloudflare.
- This can lead to false positives or outdated health status being served.
Description
We need to refactor the current Healthcheck implementation in the Boilerplate project to improve reliability and clarity, especially around storage validation and caching behavior.
Problems
Currently, the Healthcheck logic has a few limitations:
Storage handling is unclear and split without proper abstraction
We have two separate storage systems:
bindirectoryThese are currently handled in a way that is not clearly separated or well-structured.
No unified storage health strategy
Cloudflare caching is not considered in healthcheck