maestro icon indicating copy to clipboard operation
maestro copied to clipboard

Maestro add local-memory support

Open jun-he opened this issue 5 months ago • 2 comments

Maestro will provide a local memory support for the step runtime. It can be used to save some transient states in the memory. Those are a few limits:

  1. Those states are scoped to the step instance.
  2. Those states won't be persisted and will be lost if the JVM is reboot
  3. Those states are expected to be small (will have a size check)

It is useful for the case that the step runtime would like to put some temporary non-critical info there. Also, it is OK to lost the info.

jun-he avatar Aug 14 '25 01:08 jun-he

I suppose this local-memory is thread safe? Specifically visibility of the shared state between threads

yingyiz-netflix avatar Aug 16 '25 06:08 yingyiz-netflix

Yep, each actor/step has its own separate memory. So it won't be shared between threads.

jun-he avatar Aug 21 '25 16:08 jun-he