Skip to content

Support serializing session changesets #568

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 12 commits into
base: main
Choose a base branch
from
Draft

Conversation

twsouthwick
Copy link
Member

@twsouthwick twsouthwick commented Dec 16, 2024

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
Copy link
Member

@mjrousos mjrousos left a comment

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.

@twsouthwick twsouthwick marked this pull request as draft January 10, 2025 18:01
@twsouthwick
Copy link
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