TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Robust Usage Reporting with Stripe

4 点作者 hekike超过 1 年前
I recently looked into how to build out robust usage reporting with Stripe. This comes basically from the set of challenges around:<p>- Workaround Stripe API Rate Limits<p>- Handle billing cycles and minimize usage drift into the next billing cycle<p>- Deliver usage exactly once to avoid under and over-billing<p>- Stripe requires to report usage on Subscription Items<p>You can read the full blog post here:<p>https:&#x2F;&#x2F;openmeter.io&#x2F;blog&#x2F;how-to-report-usage-to-stripe<p>I&#x27;m curious about what people do to build our usage reporting. Do you use message queues? Workflow management software like Temporal? Simple CRON job?

1 comment

hbcondo714超过 1 年前
I ran into Stripe&#x27;s API rate limits while developing a revenue forecasting app[1]. The metrics calculated requires retrieving two months of charges using Stripe&#x27;s API, which can result in long loading times because only 100 records can be retrieved at a time[1] and because:<p><i>...listing charges (or most resources) can be quite slow as you need to render many objects. The Charge API especially is quite a large object to render and paginate through.</i>[3]<p>Overall, getting 100 records from Stripe&#x27;s charges endpoint takes 3 to 4 seconds<p>[1] <a href="https:&#x2F;&#x2F;github.com&#x2F;hbcondo&#x2F;revenut-app">https:&#x2F;&#x2F;github.com&#x2F;hbcondo&#x2F;revenut-app</a><p>[2] <a href="https:&#x2F;&#x2F;stripe.com&#x2F;docs&#x2F;api&#x2F;pagination#pagination-limit" rel="nofollow noreferrer">https:&#x2F;&#x2F;stripe.com&#x2F;docs&#x2F;api&#x2F;pagination#pagination-limit</a><p>[3] <a href="https:&#x2F;&#x2F;github.com&#x2F;stripe&#x2F;stripe-dotnet&#x2F;issues&#x2F;2284#issuecomment-777192698">https:&#x2F;&#x2F;github.com&#x2F;stripe&#x2F;stripe-dotnet&#x2F;issues&#x2F;2284#issuecom...</a>
评论 #37585160 未加载