Skip to content

Support serializing session changesets#568

Draft
twsouthwick wants to merge 12 commits into
mainfrom
session-changeset
Draft

Support serializing session changesets#568
twsouthwick wants to merge 12 commits into
mainfrom
session-changeset

Conversation

@twsouthwick

@twsouthwick twsouthwick commented Dec 16, 2024

Copy link
Copy Markdown
Member

Previously, the serialization of the session state to go between the remote server and the client would
deserialize/serialize every key even if it hadn't changed. As part of this change:

  • The session state tracks which items are new or have been accessed (and thus potentially changed)
  • Only sends a diff list rather than all the items
  • Only deserializes items if they are being accessed
  • Makes ISessionSerializer internal since we expect people to extend via ISessionKeySerializer instead

Fixes #503

@twsouthwick twsouthwick force-pushed the session-changeset branch 3 times, most recently from c669cbb to f69ed01 Compare December 17, 2024 00:00
Previously, the serialization of the session state to go between the remote server and the client would
deserialize/serialize every key even if it hadn't changed. As part of this change:

- The session state tracks which items are new or have been accessed (and thus potentially changed)
- Only sends a diff list rather than all the items
- Only deserializes items if they are being accessed
- Make the ISessionSerializer internal as its not the preferred way to serialize session state (use

@mjrousos mjrousos left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks good. I left a few questions inline.

Comment thread designs/session-serialization.md
Comment thread src/Services/SessionState/SessionStateCollection.cs Outdated
@twsouthwick twsouthwick marked this pull request as draft January 10, 2025 18:01
@twsouthwick

Copy link
Copy Markdown
Member Author

This breaks with the new http2 full duplex mode. will need to rework some things.

For now, to not block getting v2.0 of the adapters out, we'll just get #573 in

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Session Values are set to Null if you dont map them

2 participants