How do you handle a backfill that needs to reprocess nine months of historical data without breaking the downstream BI dashboards while the backfill is running?
SituationalData EngineerSenior Data EngineerData ArchitectFirst, I would implement a dual-write strategy to ensure that both the backfill process and the live data updates can run concurrently without affecting the downstream BI dashboards. This involves creating a temporary staging table where the backfilled data can be processed and validated before merging it into the main table. I would also set up a feature toggle to switch between the old and new data sources seamlessly.
To manage the trade-off between data accuracy and system performance, I would prioritize the backfill in off-peak hours to minimize impact on users. Success would be judged by monitoring dashboard stability throughout the process and ensuring that the data integrity checks pass before the final merge. Additionally, I would track performance metrics to confirm that the dashboards remain responsive.