Introduction
Background jobs
Blobscan requires BullMQ to run the following tasks in the background:
ETHPriceSyncer- gets the ETH price in USD and stores it.
For more information, check out the @blobscan/syncers package.
The BullMQ queue is also used to upload blobs in parallel to different Storages.
Metrics
Dagster calculates the metrics for the charts and the totals (for example, Total Tx Fees Saved, Total Blocks and Total Blobs). The pipeline writes the metrics to the hourly_metrics, daily_metrics, weekly_metrics, monthly_metrics, yearly_metrics and all_time_metrics tables. The API reads the metrics from these tables.
The metrics store the rollup of each row. The metrics keep the old attribution when the rollup of an address changes (for example, after a migration that labels a new batcher). After such a change, run the analytics.backfill_rollup_change command to re-aggregate the metrics from the first transaction of the changed addresses. See the command line documentation.
For more information, refer to the apps/dagster README.