But how to actually manage non trivial state? URLs get big pretty fast

that is why I wrote DATAOS.software. It is a paper/cookbook that answers that question.