Interview practice question
Usage-based billing for an API
Backend Engineering · API Design · Experienced
Your API charges customers per request. How do you meter usage accurately?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Log every billable request with key and timestamp.
- Stream to metering pipeline.
- Aggregate per customer per period.
- Dedup by request ID.
- Reconcile and show usage dashboard.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.