Skip to content

Refactor HealthCheck: Improve storage checks and add Cloudflare cache handling #12299

@Cyrus-Sushiant

Description

@Cyrus-Sushiant

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:

  1. Storage handling is unclear and split without proper abstraction

    • We have two separate storage systems:

      • One used for storing profile pictures
      • Another used for checking the project’s bin directory
    • These are currently handled in a way that is not clearly separated or well-structured.

  2. No unified storage health strategy

    • There is no clear interface or abstraction layer to handle different storage types consistently.
  3. 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.

Metadata

Metadata

Type

No fields configured for Task.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions