Background Services

OpenScan.AI runs a set of background workers alongside the core indexer and API. They handle the work that doesn’t belong on the request path: aggregating statistics, routing custom domains, and periodic housekeeping.


The Background Services

Statistics Worker

Aggregates chain metrics — daily transactions, active addresses, gas trends — into rollup tables that power charts and homepage stats.

Custom Domain Service

Manages custom-domain routing and certificates so your explorer answers on your own domain.

Housekeeping Worker

Periodic maintenance: expiring stale caches, pruning temporary data, and consistency checks.

Operating Notes

  • Background workers are safe to restart at any time; they resume from persisted checkpoints.
  • If the statistics worker falls behind, charts show stale aggregates but core explorer pages are unaffected.
  • Watch worker logs during upgrades — schema changes land first, then workers are restarted.

See Monitoring for the metrics these services expose.