-
Notifications
You must be signed in to change notification settings - Fork 57
Open
Description
Context
Today, the following happens on a doc that does not have a durable object:
- Edit makes a head call to DA admin to get permissions.
- Collab spins up and looks for the durable object.
- Collab realizes it does not have the object, and asks da-admin
- da-admin asks R2 / S3 for the doc
- da-admin gives doc to da-collab which makes the durable object
- da-collab returns the doc to the editor
There's a lot of hops and this is creating a noticeable lag in LCP.
Theory: we can change the HEAD request to a GET to pre-populate the editor (as read only) while waiting for the official document from collab. This will visually make the document show up faster, but it would of course be in read-only as we want the collab-based doc to be the source of truth.
Another possible option: take that GET response and push that document into collab instead of waiting for collab to come back. This has an opportunity to mess up others who might be in the document, but worth restoring.
Metadata
Metadata
Assignees
Labels
No labels