Skip to content

Cron makes a large number of stripe API calls every minute #282

@pwaller

Description

@pwaller

This is low priority, but worth mentioning.

The cron logs are full of requests that look like this, every minute:

Requesting GET api.stripe.com/v1/customers/cus_XXXX

It takes 1/4 of a minute for the requests to complete. So we only need to grow for a factor of 4 before we overflow the 'every minute' and find ourselves constantly doing stripe requests.

This suggests to me that we are sending a request to stripe for every customer? I think we should try and find a more effective way of doing this, or lower the rate. It may be more efficient to do a bulk request for all of the customer data, rather than doing it on an individual basis. Perhaps there is a way to avoid calling out to stripe entirely.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions