I have recently began learning about state machines, and i have one question: Can the workflow of a web framework be modelled using a finite state machine?
The reason i consider this to be a possibility is that between receiving the request and delivering the informations, there are definitively a set of states (initializing the request, routing the request, dispatching it and displaying the information - in a very simplified form).
Thanks.
Not in any useful sense.
The workflow you're describing is really just a set of stages in request processing. While this may technically fit the definition of a state machine, the transitions involved are all largely unconditional (each stage always transitions to the next one, unless an error occurs), so it's not particularly helpful to model it as a state machine.