Hey - could be a good use case for https://github.com/autokitteh/autokitteh - which gives you durable workflows over python. Since your logic is deterministic it's a simple python script that stores the history in memory, and autokitteh will take care of the persistancy aspect.