State Machine as a Service