Rebasely Beta: data may be purged

exampleslive-notes Public

Save a snapshot of each note to R2 every 100 versions #2

Changed files

21 files changed470 additions41 deletionssince main at d21dfdd

View editing

1 component added, 1 changed, 1 connection added

  • Added
  • Changed
  • Removed

What takes part in an edit, from the browser to the room and back, and where the room keeps copies.

What this pull request changes in the view editing: 4 components, 3 connections note-room to ops (import)note-room to snapshots (r2): addedclient to ops (import)importr2importnote-room (changed)note-roomDurable Object · changedsnapshots (added)snapshotsR2 bucket · addedopsopsLibraryclientclientLibrary

The view editing at the head of this pull request, with what it adds, changes and removes from the merge base d21dfdd. Select a component for what changed in it.

note-room

One per note, picked by name. Orders every edit, keeps the note and its op log in SQLite, holds the editors' WebSockets, and copies the note to R2 every 100 versions.

Changed by this pull request:

  • description
  • owns +src/snapshots.ts

Connections: note-room → snapshots added.

Takes part in An edit reaching other editors, Loading a note, Catching up an editor that fell behind.

Changes

  • Changed: ~ view editing: description
  • Changed: ~ view editing: components +snapshots
  • Changed: ~ note-room: description; owns +src/snapshots.ts
  • Added: + component snapshots (r2-bucket)
  • Added: + edge note-room → snapshots (r2)

Knowledge base

Back to the conversation