API Design · Senior · Question 43 of 75

What's a good way to expose computed aggregates that are expensive, like monthly revenue per customer?

Explanation

Document how fresh the numbers are (e.g. updated hourly) so clients don't treat them as real-time.

Further reading

Problem with a question

API Design · Senior · question 43

Test yourself

Take the API Design · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz