The readme mentions that workflows are expressed as graphs of state machines, but I couldn’t find an example of this?
Also the examples all seem to be of “batch computations”, i.e. take some initial state and compute some final state. How would I do something more interactive, like get a request from some client, update the state and reply with some response then continue serving the next request, etc?
The workflow map represents a graph where each handler is a node, and a dispatch is an edge between them. To do something interactive you’d run the request through the state machine, then halt it. When the next request comes in, you can restart from where the machine was halted. Here’s an example of the kind of a problem it intends to solve https://yogthos.net/posts/2022-12-18-StructuringClojureApplications.html
The readme mentions that workflows are expressed as graphs of state machines, but I couldn’t find an example of this?
Also the examples all seem to be of “batch computations”, i.e. take some initial state and compute some final state. How would I do something more interactive, like get a request from some client, update the state and reply with some response then continue serving the next request, etc?
The workflow map represents a graph where each handler is a node, and a dispatch is an edge between them. To do something interactive you’d run the request through the state machine, then halt it. When the next request comes in, you can restart from where the machine was halted. Here’s an example of the kind of a problem it intends to solve https://yogthos.net/posts/2022-12-18-StructuringClojureApplications.html