examples/live-notes Public
title: Reading a note's historydescription: >- Someone wants to see what the groceries note said before today's edits. The Worker reads the snapshots from R2 under the room's object id, which it computes with idFromName, so the room is never woken.actors: [reader]steps: - { from: reader, to: api, label: "GET /notes/groceries/snapshots" } - { from: api, to: snapshots, label: "list snapshots/<idFromName(groceries)>/, 100 keys at a time" } - { from: api, to: reader, label: "versions 100, 200 and 300, when each was saved and its size" } - { from: reader, to: api, label: "GET /notes/groceries/snapshots/200" } - { from: api, to: snapshots, label: "get snapshots/<id>/000000000200.txt" } - { from: api, to: reader, label: "the text at version 200, as text/plain, cacheable for a year" }