You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(meta-service): Add PutSequential operation for ordered key generation (#18312)
Introduce `PutSequential` operation that creates sequential keys using a
specified `prefix` and sequence generator. This enables applications to
build ordered data structures like queues, which are essential for
implementing distributed locks and semaphores.
Operation details:
- User provides a key `prefix` and sequence generator key
- Sequence generator stores JSON-encoded `u64` values for `FetchAddU64` compatibility
- Target key format: `<prefix>{next_val(<sequence_key>)}`
- Key generation happens atomically during state machine application
Use cases:
- Distributed queue implementations
- Ordered task scheduling
- Distributed lock/semaphore mechanisms
- Any scenario requiring guaranteed key ordering
The operation leverages the existing conflict-free sequence generation
infrastructure to ensure high concurrency and consistent ordering across
distributed environments.
0 commit comments