1) Provision a (free) connection secret from fauna.com
2) Import the FaunaDB driver (npm install faunadb)
3) Create a client object using your connection secret.
After that you are using FaunaDB, which is purely pay-as-you go, with ACID transactions, joins, indexes, etc.
It would be simple to write a tutorial like this for Cloudflare. Hello world on Azure functions: https://blog.fauna.com/azure-functions-with-serverless-node-... and on Lambda: https://blog.fauna.com/serverless-cloud-database
1) Provision a (free) connection secret from fauna.com
2) Import the FaunaDB driver (npm install faunadb)
3) Create a client object using your connection secret.
After that you are using FaunaDB, which is purely pay-as-you go, with ACID transactions, joins, indexes, etc.
It would be simple to write a tutorial like this for Cloudflare. Hello world on Azure functions: https://blog.fauna.com/azure-functions-with-serverless-node-... and on Lambda: https://blog.fauna.com/serverless-cloud-database