Convert State Machine to statig
?
#58
Closed
akennedy4155
started this conversation in
General
Replies: 1 comment 1 reply
-
The state machine implementation is based on the approach from this blog post: https://deislabs.io/posts/a-fistful-of-states. It has a number of nice properties, in particular it allows compile-time checking of valid state transitions and allows actions on transitions. The state machine implementation serves our needs, and is only ~50 lines of code, so I'm not sure it's worth adopting some other library for that. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've used
statig
, which is open source, to implement FSM in the past with Rust, and I loved the user experience. I noticed that the state/transition logic in the controller is not using any library as its basis. It's all code written for Arroyo.Would it make more sense to use an external library for such logic, so that we keep Arroyo specific for streaming and let the FSM logic be maintained by a project that specifically focuses on such?
Beta Was this translation helpful? Give feedback.
All reactions