[Answered ]-Async Class Based Views in Django

1👍

Whenever you need to improve performance, start with a profiler. The slow part might not be what you expect.

I suspect, in particular, that calling the Stripe API as part of a routine JSON conversion could be slow. You may want to cache a copy of the Stripe API data in a Subscription model, so you don’t have to hit an external API on every request. However … again … make sure you profile first.

Leave a comment