Clarifications about edge functions #65
Replies: 1 comment
-
SQLiteCloud cloud functions don't support the use of external modules, only their own methods and act as a kind of "very basic, precarious middleware" between the outside world and your database. For example, here's a collection of examples: https://github.com/sqlitecloud/sqlitecloud-js/tree/main/examples. If you use chatGTP, you can tell it to review those examples, and it will better program a response. The use case for cloud functions, along with SQLitecloud webhooks, is to be an entry or exit point for information. For example, the case you're describing:
I suggest you create the flowchart and the actions you want. If you create a good prompt, the AI will help you. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello!
I am new to web dev in general which makes me a bit confused about some things, so I am looking for help.
I am working on setting up Stripe payments in a Streamlit app, using SQLite cloud as my database. In order to correctly process payments, Stripe says you need to listen to their web hooks.
Because I am using Streamlit, and I am planning on deploying through their Cloud feature, I am not hosting a backend somewhere and can't listen to web hooks directly.
This led me to look into serverless functions, and then realize that SQLite cloud has them (afaik edge functions are just a special kind of Serverless function where the server they reside in is in proximity to the one your db is in right?).
I see three options before me:
I guess my main question is one of web dev about which of these seem to make the most sense to someone more experienced in building systems like these? My intuition tells me that reducing the number of tools used is good, which makes me opt for option 1, but that manual verification is bad, which makes me confused between options 2 and 3.
Any help would be appreciated!
Beta Was this translation helpful? Give feedback.
All reactions