-
Notifications
You must be signed in to change notification settings - Fork 14
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Operation locks that prevent concurrent calls to the same operation are currently living in memory only. Using a OpLock table we can move them to the attached database and provide them to additional processes.
Interface:
interface LockRepository {
tryAcquireLock(key: string, ttl: number): Promise<Lock | null>;
releaseLock(key: string): Promise;
getLock(key: string): Promise<Lock | null>;
}
interface Lock {
key: string;
acquiredAt: number;
ttl: number; // milliseconds
}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request
Type
Projects
Status
Backlog