feat: Azure Cosmos DB outbox repository (NetEvolve.Pulse.CosmosDb)#422
Open
feat: Azure Cosmos DB outbox repository (NetEvolve.Pulse.CosmosDb)#422
Conversation
8 tasks
Copilot
AI
changed the title
[WIP] Add Azure Cosmos DB outbox repository package
feat: Azure Cosmos DB outbox repository (NetEvolve.Pulse.CosmosDb)
Apr 17, 2026
Agent-Logs-Url: https://github.com/dailydevops/pulse/sessions/8cc0eb88-c126-47a6-9ff3-96f416746c0b Co-authored-by: samtrion <3283596+samtrion@users.noreply.github.com>
Agent-Logs-Url: https://github.com/dailydevops/pulse/sessions/8cc0eb88-c126-47a6-9ff3-96f416746c0b Co-authored-by: samtrion <3283596+samtrion@users.noreply.github.com>
e5af74c to
69659f1
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Adds
NetEvolve.Pulse.CosmosDb, a native Cosmos DB persistence provider for the outbox pattern, allowing teams using document-oriented architectures on Azure Cosmos DB to avoid introducing a relational database solely for outbox support.New package:
NetEvolve.Pulse.CosmosDbCosmosDbOutboxOptions— configuresDatabaseName,ContainerName(defaultoutbox_messages),PartitionKeyPath(default/id),EnableTimeToLive, andTtlSeconds(default 86400)CosmosDbOutboxRepository— fullIOutboxRepositoryimplementation using async Cosmos SDK APIs; pending-message claim usesPatchItemAsyncwithIfMatchEtagfor ETag-based optimistic concurrency to prevent duplicate processingCosmosDbOutboxManagement— fullIOutboxManagementimplementation for dead-letter inspection, replay, and statistics queriesCosmosDbExtensions—AddCosmosDbOutbox(registers core outbox + repository) andUseCosmosDbOutbox(repository-only swap) onIMediatorBuilder;CosmosClientmust be pre-registered by the callerUsage
Infrastructure changes
Microsoft.Azure.Cosmos3.58.0 added toDirectory.Packages.propsPulse.slnxand referenced from the unit test projectKnown gaps in this PR