EX-19: Ingestion Circuit Breaker for Delayed Payment Feeds
Track: Circuit Breakers & RCA • Difficulty: Intermediate • Mastery Points: 150 PTS
Business Problem Scenario
An 8-hour delayed wholesale payment file batch scheduled to land at 06:00 UTC arrived at 14:15 UTC. If downstream settlement pipelines proceed blindly on scheduled cron triggers, they publish incomplete balance sheets missing millions in intraday payments. In enterprise SRE, circuit breakers compare actual feed arrival against the scheduled SLA arrival timestamp plus allowable lateness (4 hours). You must construct an automated freshness circuit breaker query that trips when the ingestion feed lags by more than 4 hours.
Engineering Objective
Write a freshness circuit breaker evaluation query against bronze.payment_feed_audit. • Expected Columns: feed_name, latest_feed_ts, circuit_breaker_status • Circuit Breaker Evaluation Logic: - Group by feed_name. - latest_feed_ts = MAX(received_at). - circuit_breaker_status: Return 'CIRCUIT_BREAKER_TRIPPED' when MAX(received_at) < CURRENT_TIMESTAMP - INTERVAL 4 HOURS, else 'FEED_HEALTHY'. - Filter for feed_name = 'bacs_inbound'. Key Concepts: - Data Circuit Breaker: Automated safety valve arresting pipeline DAG execution upon upstream data freshness or volume anomalies.
Target Table: bronze.payment_feed_audit (feed_name STRING, received_at TIMESTAMP, record_count INT, status STRING)
Verification & Architecture Insights
Automated circuit breakers halt downstream publication when upstream batches arrive late, preventing silent partial balance sheet reporting.