#duxsec_best-practices

1 messages ¡ Page 1 of 1 (latest)

fossil elmBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1311054975304073286

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

round geode
#

Or would caching or something help? (I use NGINX). Really looking for the best way to go forward

tidal willow
round geode
# tidal willow Hi, you're right - that is a bd idea. You would want to store that data on your ...

Thank you for the reply. So I would then prefer to keep a model in my own database that syncs via the webhooks. However, what would happen with the webhook from stripe if a customer goes to the stripe checkout page from my website, and I am running an update? Will stripe send it again once I am 'live' again?

Is there also a way to fetch all customers to make sure all data in my own database is correct?

tidal willow
#

Can you clarify what you mean with ' am running an update? Will stripe send it again once I am 'live' again'?

round geode
#

Of course, If in that timeframe I push an update via CI/CD so my webserver will be offline for let's say a minute or two.

Will stripe re-send the webhook once my webserver is live again? - I could not receive the original webhook from stripe since the webserver was offline

tidal willow
#

Yes, if the webhook event delivery fails, Stripe attempts to deliver a given event to your webhook endpoint for up to 3 days with an exponential back off. In test mode, Stripe retries three times over a few hours: https://docs.stripe.com/webhooks#retries

tidal willow
#

Happy to help!