Acquires execution lock for machine ID (event.subject). Should implement reasonable retries with backoff for transient lock conflicts. Must fail fast after retry attempts exhausted - no long polling.
Machine ID
True if lock acquired successfully
Gets state data for machine ID (event.subject). Should implement minimal retries (e.g. 2-3 attempts) with backoff for transient failures. Must distinguish between:
Retry strategy should be quick with reasonable timeout to avoid blocking:
Machine ID
null if no data exists, T if data found
Releases execution lock for machine ID (event.subject). Can retry a few times on failure but should not over-engineer. System will eventually recover even if unlock fails.
Implementation MUST include lock expiry mechanism (TTL):
Machine ID
True if unlocked successfully
Manages machine state memory operations with optimistic locking strategy. Implements a "fail fast on acquire, be tolerant on release" approach for resource management.