Skip to content

feat(core): add fence to make all methods strongly consistent when syncing#22679

Merged
jlongster merged 4 commits intodevfrom
jlongster/sync-fence
Apr 16, 2026
Merged

feat(core): add fence to make all methods strongly consistent when syncing#22679
jlongster merged 4 commits intodevfrom
jlongster/sync-fence

Conversation

@jlongster
Copy link
Copy Markdown
Contributor

Implement a fence which is the sync state sent back on every response from the workspace server, which the control plane server can read and wait until it's all synced up. This makes all of our methods strongly consistent again

@jlongster jlongster merged commit 074ef03 into dev Apr 16, 2026
10 checks passed
@jlongster jlongster deleted the jlongster/sync-fence branch April 16, 2026 01:04
log.info("header", {
diff: current,
})
c.res.headers.set(HEADER, JSON.stringify(current))
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can this end up being too large?
It depends on the runtime, but Bun has 16k limit on sum of all headers.

Can be changed thou: https://bun.com/docs/runtime#param-max-http-header-size

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants