I would like to implement a complex state machine on some serverless infrastructure like AWS Lambda. I know there is already AWS StepFunction for such purpose but pricing model is not that good for my use case as there will be many state transitions on prod.
I found XState as a very interesting candidate but as far as I understand it was developed for frontend, possibility to use it in backend ist not documented but mentioned in the documentation.
Now the question: if it is possible to use it with AWS Lambda and how the state could be stored and restored after Lambda instance goes down?