GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Add Azure Table journal storage provider by danielmeza · Pull Request #10254 · dotnet/orleans

Conversation

@danielmeza

@danielmeza danielmeza commented Jul 7, 2026 •
edited by dotnet-policy-service Bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Motivation

#10253 — replaying the append-blob WAL is paced per committed block by the Azure Storage service (~5.7 ms/block, reproducible with a raw curl and no Orleans involved), so grain recovery grows with journaled operation count: ~5.3 s for a ~1,000-op journal over a ~113 ms WAN link, while the same bytes read as a single-block blob in <200 ms. An Azure Table-backed journal replays via partition range queries (1,000 entities/page) at wire speed — the same journal replays in under 1 s on the same link in our benchmark.

Changes

New Table provider in Orleans.Journaling.AzureStorage, mirroring the blob provider's structure and discipline:

  • AzureTableJournalStorage: one partition per JournalId; a $header manifest row is the ETag fence and carries provider + caller metadata (caller keys in a JSON property, provider-owned keys preserved per the IJournalStorage contract). Data rows hold 64 KiB binary chunks (up to 15 properties/row).
    • AppendAsync = header merge + data rows in a single EGT (atomic; 412/409 → InconsistentStateException).
    • ReplaceAsync = new-generation rows written invisibly, then an ETag-guarded header flip, then best-effort cleanup of the old generation (orphans are unreachable via the header).
    • ReadAsync = header point-read + one bounded range query streamed to the consumer via JournalStorageConsumerExtensions; count/length validated against the header before any bytes are consumed (concurrent replace → InconsistentStateException).
    • Metadata ops (CreateIfNotExists/Get/UpdateMetadataAsync) with the same conditional semantics and metadata-only-conflict refresh loop as the blob provider.
  • AzureTableJournalStorageOptions (mirrors blob option names/defaults), provider + IJournalStorageCatalog, AddAzureTableJournalStorage(...) hosting overloads, "AzureTableStorage" provider builder under "GrainJournaling", per-op instruments, README section.
  • API baseline regenerated with the repo's GenAPIGenerateReferenceAssemblySource target.

Deliberate choices (feedback welcome)

  • Generation stamp is a random GUID (doubles as the blob provider's recreation stamp; makes orphaned rows from a failed flip collision-proof) rather than a counter.
  • Single-append cap is 2 MiB: Base64 inflation of binary properties inside the 4 MiB EGT payload limit.
  • Compaction thresholds (10,000 rows / 32 MiB) are judgment calls — the blob heuristic is driven by a hard block-count limit tables don't have; happy to adjust.
  • Naming (AddAzureTableJournalStorage, provider "AzureTableStorage", default table "journal") open to your preference.

Tests

  • AzureTableJournalStorageTests (BVT, 27 facts, in-memory Table fake with paging/filter/EGT semantics) and AzureTableCodecRecoveryTests (Functional vs Azurite, incl. binary→JSON format migration and a >1 MiB multi-row append).
  • Full Orleans.Journaling.Tests suite against Azurite: 377/377 passing on net8.0 and net10.0 — no regressions in the existing blob tests.

Addresses #10253.

Microsoft Reviewers: Open in CodeFlow

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

ledjon-behluli reacted with heart emoji
All reactions
  • ❤️ 1 reaction
danielmeza and others added 4 commits July 7, 2026 15:43
@danielmeza
feat(journaling): add Azure Table journal storage provider
24b4737
Add an Azure Table-backed IJournalStorage to
Microsoft.Orleans.Journaling.AzureStorage as an alternative to the
append-blob provider. Each journal is one table partition: an
ETag-guarded header row holds the journal manifest (format, generation,
row/byte counts, caller metadata) and every append commits its 64 KiB
chunked data rows together with the header update in a single entity
group transaction. Recovery replays the current generation with a
single partition range query instead of a paced per-block download,
making replay latency independent of the number of journaled
operations.

ReplaceAsync writes the new generation's rows invisibly across as many
transactions as needed, then publishes them with an ETag-guarded header
flip. Generations use random identifiers so rows orphaned by a failed
flip can never collide with, or leak into, later generations; obsolete
generations are removed best-effort after the flip.

Addresses dotnet#10253.
@danielmeza
test(journaling): cover Azure Table journal storage
7d39ec7
Mirror the Azure Blob journal storage test suites for the table
provider: an in-memory TableClient fake covering append/replace/delete
round-trips, chunking across binary properties and rows, ETag fencing
between competing writers, metadata-only conflict refresh, generation
flips with orphan-row tolerance, and journal metadata operations, plus
Azurite-backed functional tests for durable-type recovery,
replace-and-append recovery across fresh provider instances,
binary-to-JSON format migration, and large multi-row appends.
@ReubenBond
fix(journaling): harden Azure Table storage
53d9c8c
Correct compaction accounting, stream recovery data, clean unpublished generations, preserve catalog identities with custom partition mappings, validate configuration, and retain compatibility with legacy headers.

Co-authored-by: Copilot App <[email protected]>

Copilot-Session: 9fe5acf1-653a-4fc9-bc1d-1920ed126475
@ReubenBond
test(journaling): expand Azure Table coverage
e07d68e
Cover storage boundaries, corruption, concurrency, recovery, legacy schema migration, provider lifecycle, configuration, hosting registration, metrics, and codec behavior.

Co-authored-by: Copilot App <[email protected]>

Copilot-Session: 9fe5acf1-653a-4fc9-bc1d-1920ed126475
@danielmeza
danielmeza marked this pull request as ready for review July 23, 2026 19:28
@danielmeza
Merge branch 'main' into feature/azure-table-journal-storage
d288856
@azure-pipelines

azure-pipelines Bot commented Jul 23, 2026

Copy link
Copy Markdown
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@ReubenBond

ReubenBond commented Jul 29, 2026

Copy link
Copy Markdown
Member

Thank you for doing this, @danielmeza, and thank you for the analysis! This looks good to me, and I just need to find time for a once-over before we merge it and release it. Are you using this provider already?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

ReubenBond
ReubenBond approved these changes Jul 30, 2026
View reviewed changes
@ReubenBond
ReubenBond merged commit 35d522a into dotnet:main Jul 30, 2026
63 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@danielmeza

danielmeza commented Jul 31, 2026

Copy link
Copy Markdown
Contributor Author

Thank you for doing this, @danielmeza, and thank you for the analysis! This looks good to me, and I just need to find time for a once-over before we merge it and release it. Are you using this provider already?

Hi Ruben, glad to help, thank you for you review and your feedback. Hope to keep contributing

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@ReubenBond

ReubenBond commented Jul 31, 2026

Copy link
Copy Markdown
Member

@danielmeza I performed some analysis regarding the blob latency claim. Here are the results:

systematic-westus2-20260731-latency

In this case, the blob size is fixed at 512kb and the block size varies (512KB/NumBlocks), to show the overhead of block count on recovery latency.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@ReubenBond

ReubenBond commented Jul 31, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

Here's a version with more data points and including Table Storage to show the trend:
systematic-westus2-blob-table-20260731-latency
systematic-westus2-blob-table-20260731-latency-per-block

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@ReubenBond ReubenBond mentioned this pull request Aug 10, 2026
Journaling: Azure append-blob WAL replay is paced per committed block server-side — ~5.3 s recovery for 1,000 journaled ops over WAN (curl-reproducible; checkpointing never engages) #10253
Closed
This was referenced Aug 28, 2026
Bump Microsoft.Orleans.Dashboard from 10.2.2 to 10.3.0 csrakowski/FeedManager#20
Merged
Bump Microsoft.Orleans.Persistence.AdoNet from 10.2.2 to 10.3.0 csrakowski/FeedManager#21
Merged
Bump Microsoft.Orleans.Persistence.Memory from 10.2.2 to 10.3.0 csrakowski/FeedManager#22
Closed
Bump Microsoft.Orleans.Persistence.Redis from 10.2.2 to 10.3.0 csrakowski/FeedManager#23
Merged
Bump Microsoft.Orleans.Runtime from 10.2.2 to 10.3.0 csrakowski/FeedManager#24
Merged
Bump Microsoft.Orleans.Sdk from 10.2.2 to 10.3.0 csrakowski/FeedManager#25
Merged
Bump Microsoft.Orleans.Persistence.Memory and Microsoft.Orleans.Server csrakowski/FeedManager#26
Merged
Bump the dotnet-dependencies group with 1 update dills122/sandtable#67
Merged
Bump the dotnet group with 2 updates Kuestenlogik/Surgewave.Connectors#20
Merged
chore(deps): Bump the nuget-patch-and-minor group with 13 updates petesramek/microservices-vs-virtual-actors#7
Closed
chore: Bump Microsoft.Orleans.Persistence.Memory and Microsoft.Orleans.Runtime managedcode/Communication#151
Closed
chore: Bump Microsoft.Orleans.Runtime from 10.2.2 to 10.3.1 managedcode/Communication#152
Closed
chore: Bump Microsoft.Orleans.Sdk from 10.2.2 to 10.3.1 managedcode/Communication#153
Closed
chore: Bump Microsoft.Orleans.Serialization.Abstractions from 10.2.2 to 10.3.1 managedcode/Communication#154
Merged
chore: Bump Microsoft.Orleans.Persistence.Memory and 3 others managedcode/Communication#155
Closed
chore: Bump Microsoft.Orleans.TestingHost from 10.2.2 to 10.3.1 managedcode/Communication#156
Merged
@dependabot dependabot Bot mentioned this pull request Aug 31, 2026
Bump the orleans group with 1 update vgmello/momentum#341
Closed
@github-actions github-actions Bot locked and limited conversation to collaborators Aug 31, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

@ReubenBond ReubenBond ReubenBond approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@danielmeza @ReubenBond
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.