4 ms·
Does Cloudflare have a free DB of sorts, like Amazon's DynamoDB? Or can I query Amazon's DynamoDB from the worker?
by bufferoverflow 8y ago
Does Cloudflare have a free DB of sorts, like Amazon's DynamoDB? Or can I query Amazon's DynamoDB from the worker?
- zackbloom 8y agoThat's something we're working on at Cloudflare. You can query any database which has an HTTP interface though right now. It looks like Dynamo has one: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Programming.LowLevelAPI.html https://docs.aws.amazon.com/amazondynamodb/latest/developerg... But you also have a bunch of other options like: - https://restdb.io/ https://restdb.io/ - https://firebase.google.com/docs/reference/rest/database/ https://firebase.google.com/docs/reference/rest/database/ - http://couchdb.apache.org/ http://couchdb.apache.org/
- jchrisa 8y agoI've written a few blog posts about using FaunaDB from FaaS functions, the steps should be the same for any FaaS provider: 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-js-and-faunadb https://blog.fauna.com/azure-functions-with-serverless-node-... and on Lambda: https://blog.fauna.com/serverless-cloud-database https://blog.fauna.com/serverless-cloud-database
- zackbloom 8y agoThat would be great, please do!
- kentonv 8y agoBuilding out storage is my current focus. The challenge is that we want to build something that actually utilizes out network of 151 locations today, 1000's of locations in the future. If your application has users on Mars (or, New Zealand), you should be able to store their data at the Cloudflare location on Mars (or, New Zealand) so that they can get to it with minimal latency. PS. If you're a storage expert and building a hyper-distributed storage system interests you, e-mail me at kenton at cloudflare. We're hiring.
- ranman 8y agoLet me know if you need help with the Mars location in the future. I can't wait for AWS to open their utopia-planitia-1 region with SpaceX or BlueOrigin.