Skip to content

Feature Request: Add a Contention Manager to Improve Conflict Handling #4

@engineering87

Description

@engineering87

The current STMEngine uses a fixed exponential backoff strategy for retrying transactions after conflicts.
While simple and effective for basic scenarios, it lacks flexibility and does not adapt to varying contention levels or workloads.

Proposal

Introduce a pluggable Contention Manager interface, then allow STMEngine.Atomic to optionally accept an IContentionManager instance.

Benefits

  • Enables smarter retry logic (e.g., randomized, linear, or adaptive backoff)
  • Allows priority-based conflict resolution (e.g., aging, transaction weight)
  • Makes STMSharp more extensible and research-friendly

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions