René's URL Explorer Experiment


Title: Consider lazy durable entity state serialization semantics · Issue #234 · microsoft/durabletask-python · GitHub

Open Graph Title: Consider lazy durable entity state serialization semantics · Issue #234 · microsoft/durabletask-python

X Title: Consider lazy durable entity state serialization semantics · Issue #234 · microsoft/durabletask-python

Description: Summary Durable entity state is currently serialized eagerly when set_state() is called. This snapshots the value immediately, so mutations made to the same Python object after set_state() do not affect the state eventually persisted at ...

Open Graph Description: Summary Durable entity state is currently serialized eagerly when set_state() is called. This snapshots the value immediately, so mutations made to the same Python object after set_state() do not a...

X Description: Summary Durable entity state is currently serialized eagerly when set_state() is called. This snapshots the value immediately, so mutations made to the same Python object after set_state() do not a...

Opengraph URL: https://github.com/microsoft/durabletask-python/issues/234

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Consider lazy durable entity state serialization semantics","articleBody":"## Summary\n\nDurable entity state is currently serialized eagerly when `set_state()` is called. This snapshots the value immediately, so mutations made to the same Python object after `set_state()` do not affect the state eventually persisted at the end of the operation.\n\n```python\nstate = Point(1)\nself.set_state(state)\nstate.value = 99\n```\n\nThe persisted state is `Point(1)`, not `Point(99)`.\n\nThis may surprise Python users who expect ordinary reference semantics and could introduce subtle bugs when entity code mutates an object after passing it to `set_state()`.\n\n## Scope\n\nThe behavior is implemented in the core `durabletask` entity `StateShim`, so it affects core `durabletask` entities and providers built on it, including `durabletask-azuremanaged` and `azure-functions-durable`.\n\n## Current rationale\n\nEager serialization was introduced intentionally to:\n\n- surface serialization errors inside the operation that called `set_state()`;\n- preserve per-operation rollback behavior in an entity batch;\n- retain the original serialized wire payload when state is unmodified; and\n- prevent mutations to values returned by `get_state()` from implicitly changing persisted state without a corresponding `set_state()`.\n\n## Design question\n\nShould `set_state()` retain the live value and defer serialization until successful operation completion, so mutations made after `set_state()` but before the operation returns are persisted?\n\nIf so, the design needs to define:\n\n- whether `get_state()` after `set_state()` returns the same pending live object or a reconstructed copy;\n- where serialization occurs so serialization failures still fail and roll back the current operation;\n- behavior across multiple operations in one entity batch;\n- compatibility implications of changing `set_state()` from snapshot-at-call semantics to retain-reference-until-commit semantics; and\n- consistency with Durable Entity semantics in other language SDKs.\n\n## Suggested investigation\n\n- Compare mutation semantics with other Durable Entity SDKs.\n- Prototype deferred serialization at the operation commit boundary.\n- Add tests for post-`set_state()` mutation, serialization failure, rollback, deletion, unmodified wire payloads, and multiple operations in one batch.\n- Document the current requirement to perform mutations before the final `set_state()` call unless the behavior changes.","author":{"url":"https://github.com/andystaples","@type":"Person","name":"andystaples"},"datePublished":"2026-07-29T15:50:29Z","url":"https://github.com/microsoft/durabletask-python/issues/234"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:0e2bf3f9-5dba-be6b-49e9-6070a4b31b72
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idE286:A9E5B:679F7:8FA1F:6AFE1E8D
html-safe-nonceb104b2e5fba923d71d863f542c67e86e27c6524eb90c888d2e24a4e86fde982d
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMjg2OkE5RTVCOjY3OUY3OjhGQTFGOjZBRkUxRThEIiwidmlzaXRvcl9pZCI6IjM4MTM1MDY0NjMyNTUzNzE0MDUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacf374578d4b181637ce10c3a15fb3941fb5b6f929832f9f18b768a79d52eb7933
hovercard-subject-tagissue:5011148610
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/durabletask-python/234/issue_layout
twitter:imagehttps://opengraph.githubassets.com/bdefbe2308f586c7e5b567805564a39ba9c4bbe8d8bcf895d5d4cdef45f49b62/microsoft/durabletask-python/issues/234
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/bdefbe2308f586c7e5b567805564a39ba9c4bbe8d8bcf895d5d4cdef45f49b62/microsoft/durabletask-python/issues/234
og:image:altSummary Durable entity state is currently serialized eagerly when set_state() is called. This snapshots the value immediately, so mutations made to the same Python object after set_state() do not a...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameandystaples
hostnamegithub.com
expected-hostnamegithub.com
Noned0525ab1464526bf4532a5551aa348cf100dff75ef808a96fc67a08b1d946aa9
turbo-cache-controlno-preview
go-importgithub.com/microsoft/durabletask-python git https://github.com/microsoft/durabletask-python.git
octolytics-dimension-user_id6154722
octolytics-dimension-user_loginmicrosoft
octolytics-dimension-repository_id627664515
octolytics-dimension-repository_nwomicrosoft/durabletask-python
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id627664515
octolytics-dimension-repository_network_root_nwomicrosoft/durabletask-python
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasefef3993a71fa20f7be8e167132fbf9619bc66e12
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/microsoft/durabletask-python/issues/234#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fdurabletask-python%2Fissues%2F234
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fdurabletask-python%2Fissues%2F234
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=microsoft%2Fdurabletask-python
Reloadhttps://github.com/microsoft/durabletask-python/issues/234
Reloadhttps://github.com/microsoft/durabletask-python/issues/234
Reloadhttps://github.com/microsoft/durabletask-python/issues/234
microsofthttps://github.com/microsoft
durabletask-pythonhttps://github.com/microsoft/durabletask-python
Codehttps://github.com/microsoft/durabletask-python
Issues15 (15)https://github.com/microsoft/durabletask-python/issues
Pull requests12 (12)https://github.com/microsoft/durabletask-python/pulls
Actionshttps://github.com/microsoft/durabletask-python/actions
Projectshttps://github.com/microsoft/durabletask-python/projects
Security and qualityhttps://github.com/microsoft/durabletask-python/security
Insightshttps://github.com/microsoft/durabletask-python/insights
https://github.com/microsoft/durabletask-python
New issuehttps://github.com/login?return_to=https://github.com/microsoft/durabletask-python/issues/234
New issuehttps://github.com/login?return_to=https://github.com/microsoft/durabletask-python/issues/234
Consider lazy durable entity state serialization semanticshttps://github.com/microsoft/durabletask-python/issues/234#top
breaking-changeThis PR or issue requires a breaking change to code or replay semantics.https://github.com/microsoft/durabletask-python/issues?q=state%3Aopen%20label%3A%22breaking-change%22
enhancementNew feature or requesthttps://github.com/microsoft/durabletask-python/issues?q=state%3Aopen%20label%3A%22enhancement%22
https://github.com/andystaples
andystapleshttps://github.com/andystaples
on Jul 29, 2026https://github.com/microsoft/durabletask-python/issues/234#issue-5011148610
andystapleshttps://github.com/andystaples
enhancementNew feature or requesthttps://github.com/microsoft/durabletask-python/issues?q=state%3Aopen%20label%3A%22enhancement%22
breaking-changeThis PR or issue requires a breaking change to code or replay semantics.https://github.com/microsoft/durabletask-python/issues?q=state%3Aopen%20label%3A%22breaking-change%22
on Nov 11, 2026https://github.com/microsoft/durabletask-python/issues/234#event-35834497818
Sign up for freehttps://github.com/signup?return_to=https://github.com/microsoft/durabletask-python/issues/234
Sign in to commenthttps://github.com/login?return_to=https://github.com/microsoft/durabletask-python/issues/234
breaking-changeThis PR or issue requires a breaking change to code or replay semantics.https://github.com/microsoft/durabletask-python/issues?q=state%3Aopen%20label%3A%22breaking-change%22
enhancementNew feature or requesthttps://github.com/microsoft/durabletask-python/issues?q=state%3Aopen%20label%3A%22enhancement%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.