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

System

1 component added, 2 changed, 2 connections added, 1 view changed, 2 dataflows changed

  • Added
  • Changed
  • Removed
What this pull request changes in the system: 5 components, 5 connections api to note-room (rpc)api to snapshots (r2): addednote-room to ops (import)note-room to snapshots (r2): addedclient to ops (import)rpcr2importr2importapi (changed)apiWorker · changednote-room (changed)note-roomDurable Object · changedsnapshots (added)snapshotsR2 bucket · addedopsopsLibraryclientclientLibrary

The system 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: ~ api: description
  • Changed: ~ note-room: description; owns +src/snapshots.ts
  • Added: + component snapshots (r2-bucket)
  • Added: + edge api → snapshots (r2)
  • Added: + edge note-room → snapshots (r2)
  • Changed: ~ view editing: description; components +snapshots
  • Changed: ~ flow edit-broadcast: 1 step added, description changed
  • Added: + flow reading-history

Knowledge base

Back to the conversation