In-memory implementation of machine state storage for single-instance NodeJS apps.
Best for: Container apps, request-scoped workflows, testing, demos Not for: Multi-instance deployments, persistent workflows, distributed systems
const memory = new SimpleMachineMemory();const orchestrator = createArvoOrchestrator({ memory, executionunits: 1, machines: [workflow]}); Copy
const memory = new SimpleMachineMemory();const orchestrator = createArvoOrchestrator({ memory, executionunits: 1, machines: [workflow]});
Clears all stored data and locks
Optional
Attempts to acquire lock for machine instance
Machine instance ID
Success status of lock acquisition
When id is empty or undefined
Gets stored state for a machine instance
State data or null if not found
Releases lock for machine instance
True when lock is released
Stores state for a machine instance
State to store
When id is empty/undefined or data is null/undefined
In-memory implementation of machine state storage for single-instance NodeJS apps.
Best for: Container apps, request-scoped workflows, testing, demos Not for: Multi-instance deployments, persistent workflows, distributed systems
Example