Month-End Close
Easy · system design problem
Month-end: five times the BI queries, each taking seconds. The warehouse queues, then the BI API runs out of threads waiting on it.
Finance analysts run reports through bi-api against the data warehouse: 30 queries/s on one compute cluster that answers ~50/s, ~1.5 s each. At T+20s the month-end close starts and queries quintuple until tomorrow. Month-end queries are ad hoc — almost nothing repeats, so caching results does not help. The warehouse supports multi-cluster scaling.
Topics
More
Codelays runs in your browser: turn on JavaScript to use it.