#dinner_roll

1 messages · Page 1 of 1 (latest)

onyx swallowBOT
strange quiver
#

hello! give me a while to get back to you on this

#

personally I would go with 2, you should run a batch job every X interval. For your business, you shouldn't submit a usage record per request since that would lead to a high number of requests made to Stripe and you would likely run into rate limits

#

is there a reason why you're not happy with 2) ?

onyx swallowBOT
torpid phoenix
#

Thanks Alex, 2) works but has potential for slight inaccuracies. E.g when the monthly billing cycle is processed, there might be a few outstanding requests from that month (because the last few request sum to less than $0.01 worth). They would get rolled into the next month, or we just write them off… works, just doesn’t fee as clean but I feel you with all the requests going to Stripe on the record-per-request method.