Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getIsSubscriberByEmail check DB instead of stripe #838

Open
howardchung opened this issue Nov 24, 2023 · 0 comments
Open

getIsSubscriberByEmail check DB instead of stripe #838

howardchung opened this issue Nov 24, 2023 · 0 comments

Comments

@howardchung
Copy link
Owner

howardchung commented Nov 24, 2023

Currently this call requires checking against the Stripe API on every request, which won't scale forever.

We currently cache the subscriber list in the database (syncSubs background process), so we can check the DB instead.

This doesn't update immediately though (it runs on an interval), so we have to make sure that new subs get this updated so they see the sub effects right after subscribing

@howardchung howardchung changed the title replace getIsSubscriberByEmail with getIsSubscriberByUID getIsSubscriberByEmail check DB instead of stripe Jan 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant