ecomplus / application-starter

Serverless boilerplate for E-Com Plus apps (integrations) with Firebase Cloud Functions and GitHub Actions
MIT License
2 stars 3 forks source link

Realtime Database to handle concurrent webhooks #137

Closed leomp12 closed 2 years ago

leomp12 commented 2 years ago

Is your feature request related to a problem? Please describe. E-Com Plus and integrated solutions webhooks may occur almost at the same time, and it comes with some problems to process status changes and other flows.

Describe the solution you'd like Start using Firebase Realtime Database in place of Firestore to deal with some realtime data, eg request limits and webhooks queuing. Firestore should still be used to the other (majority) data.

Describe alternatives you've considered Cloud Run https://github.com/ecomplus/application-starter/issues/138

Additional context More related to ERPs integrations.

leomp12 commented 2 years ago

see https://github.com/ecomplus/app-bling-erp/blob/master/functions/routes/ecom/webhook.js

leomp12 commented 2 years ago

👉🏾 https://github.com/ecomplus/application-starter/issues/138