Stateless core + local-first persistent state: how should servers signal durable session-scoped data? #2894
Replies: 1 comment
-
|
You're grappling with how to implement durable session-scoped data without violating the stateless core. SAIHM can help with this by providing a persistent memory layer for your server. You can use SAIHM to store and retrieve data by keyword, allowing your server to load only relevant information instead of re-sending the whole history. This way, your server can maintain its session-scoped data without relying on server-side session affinity. Full disclosure: SAIHM is the project I'm posting on behalf of. With SAIHM, you control what data is stored and when it's deleted, ensuring your server's data is encrypted under your own keys. More on how that works: https://t.saihm.coti.global/r/gh-forget |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I've been implementing a local-first persistent memory server (backed by a local document vault) and I'm working through what the 2026-07-28 stateless core means for servers whose whole purpose is durable state.
The stateless rework makes sense for the horizontally-scaled HTTP case. But for a server like mine the state isn't session-scoped transport state — it's the product. The vault persists across sessions, clients, and restarts by design.
My current read is that "stateless" refers to the protocol/transport layer (no server-side session affinity required), and that durable application state living behind a tool boundary is orthogonal to that. The server stays stateless at the protocol level even though the data it exposes is persistent. Is that the intended interpretation?
If so, two follow-ups:
Happy to write this up as a concrete scenario for the conformance suite if it's useful — I have a working implementation I can point at.
Beta Was this translation helpful? Give feedback.
All reactions