hardDesignScenarioMidSeniorStaff
Usage records arrive duplicated, late and out of order, and the tariff changed in the middle of the month. How does mediation and rating cope?
6 min readUpdated 2026-08-15
Answer
Short answer
Mediation normalises and deduplicates records against a persisted key window sized to the worst observed lateness, then rating prices each record by its event time against an effective-dated tariff version.
Was this answer helpful?
Likely follow-ups
- A long data session emits interim records every fifteen minutes. How do you avoid double-charging it?
- Marketing corrects a tariff retroactively for last month. What does rerating have to guarantee?
- The balance store becomes unreachable mid-session. Do you cut the subscriber off or let them continue?
- How would you prove to an auditor that no record was lost between the network and the invoice?
Related questions
- A family plan shares 100 GB across five SIMs with each SIM capped at 30 GB. How does charging enforce both limits at once?hardAlso on charging and rating6 min
- Events for a daily revenue table arrive up to three days late. How do you design the pipeline and the backfill?hardAlso on event-time4 min
- The business wants to change a rating factor next Monday. Walk me through what actually has to happen.hardAlso on rating5 min
- How would you design a data pipeline you can safely re-run?hardAlso on event-time6 min