Ask HN: Anyone here using Cloudflare’s durable objects?

https://news.ycombinator.com/item?id=29809160
by saimiam • 5 years ago
2 2 5 years ago

I need to get some concepts cleared because it looks to be something I could use right away for a project of mine. Bears mentioning that I come from the AWS world so I’m trying to get DOs from that perspective.

1. Is a durable object just a singleton JavaScript object which can write to a file?

2. Say I have a config JSON. Can a DO be used to update that json without worrying about one updater overwriting someone else’s updates? Basically, do DOs guarantee updates?

3. Is a DO in any way related to databases like DynamoDB or object stores like S3? I don’t think it is but if it is, how so?

4. Is a Cloudflare worker the same as a Lambda@Edge? So a DO is just a backend for (essentially) a bunch of Lambda@Edge functions?

Any help would be very appreciated? I’ve read the CF docs but they don’t give a conceptual overview of the product

Related Stories

Loading related stories...

Source preview

news.ycombinator.com