←back to thread

285 points ajhit406 | 4 comments | | HN request time: 0s | source
1. CyberDildonics ◴[] No.41837500[source]
What is the difference between a "durable object" and a file?
replies(1): >>41838296 #
2. simonw ◴[] No.41838296[source]
You can read the full article for an answer to that: https://blog.cloudflare.com/sqlite-in-durable-objects/

Short version: it's replicated to five data centers on every transaction, and backed up as a stream to object storage as well.

replies(1): >>41840418 #
3. CyberDildonics ◴[] No.41840418[source]
So it's a file that gets backed up like dropbox
replies(1): >>41840540 #
4. simonw ◴[] No.41840540{3}[source]
At a very high level, yes. But the details matter here - you commit a transaction to the SQLite database and know that the commit has been pushed out to 3/5 replicas by the time the write API request returns - and that it will be logged to object storage (supporting 30 days of rollback) within ten seconds. AND it will live in a data center physically close to the user who caused it to be created.