Orb What's new in Orb logo
Back to Homepage

What's new in Orb

Subscribe to Updates

Labels

  • All Posts
  • API
  • Dashboard
  • Integrations
  • Performance
  • Subscription Management
  • Billable Metrics
  • Feature
  • Invoices
  • Customer Portal
  • Improvement
  • Tax
  • IT Administration
  • Revenue Reporting
  • Webhooks
  • Plan Configuration
  • Developer Experience
  • Pricing Models
  • Usage Data
  • Coupons
  • Credits
  • Data Exports

Jump to Month

  • May 2025
  • April 2025
  • March 2025
  • February 2025
  • January 2025
  • December 2024
  • November 2024
  • October 2024
  • September 2024
  • August 2024
  • July 2024
  • June 2024
  • May 2024
  • April 2024
  • March 2024
  • February 2024
  • January 2024
  • December 2023
  • October 2023
  • September 2023
  • August 2023
  • July 2023
  • June 2023
  • May 2023
  • April 2023
  • March 2023
  • February 2023
  • January 2023
  • December 2022
  • November 2022
  • October 2022
  • September 2022
  • August 2022
Changelog byAnnounceKit

Create yours, for free!

11 months ago

Support for cached usage responses

Orb now supports returning precomputed responses on the subscription costs, customer costs, and subscription usage endpoints as an opt-in feature through the `Orb-Cache-Control` header.

By default, these endpoints will query the latest events for the resource and execute a live query. For large time ranges, event sets, or many metrics, this can take a few seconds. However, Orb also periodically recomputes usage totals for each customer asynchronously as events are ingested and can now directly serve this data if requested without performing the live query.

Note that cached data is not guaranteed to be entirely fresh, and is meant to serve use cases like an initial load where performance on the critical path is important. In the response, Orb returns a timestamp, which represents the latest time the results are guaranteed to capture. This timestamp can be used to display the freshness to the user, or for your system to decide whether re-querying the endpoint for the latest data is required.

In order to request cached data on these supported endpoints, see this docs page for a more detailed explanation of request and response semantics.