Skip to content

[research] Editor LCP #533

@auniverseaway

Description

@auniverseaway

Context

Today, the following happens on a doc that does not have a durable object:

  1. Edit makes a head call to DA admin to get permissions.
  2. Collab spins up and looks for the durable object.
  3. Collab realizes it does not have the object, and asks da-admin
  4. da-admin asks R2 / S3 for the doc
  5. da-admin gives doc to da-collab which makes the durable object
  6. 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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions