Hacker News new | ask | show | jobs
by hbcondo714 1017 days ago
I ran into Stripe's API rate limits while developing a revenue forecasting app[1]. The metrics calculated requires retrieving two months of charges using Stripe's API, which can result in long loading times because only 100 records can be retrieved at a time[1] and because:

...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.[3]

Overall, getting 100 records from Stripe's charges endpoint takes 3 to 4 seconds

[1] https://github.com/hbcondo/revenut-app

[2] https://stripe.com/docs/api/pagination#pagination-limit

[3] https://github.com/stripe/stripe-dotnet/issues/2284#issuecom...

1 comments

This is a great insight; thanks for sharing!