How to design long running workflows?

Duplicate of Unexpected error causing Out of Memory while running lifecycle workflows