3 ms·
You realise you're allowed to use more than one state machine right ?
by smallpipe 3y ago
You realise you're allowed to use more than one state machine right ?
- worthless-trash 3y agoThis was my thought too, I hear most people get a bit jumpy when they see two state machines, like its too many moving parts.
- vemv 3y agoYes. From intuition I'd say that getting the right granularity is just as hard as getting other granularities right (e.g. how "micro" or "macro" your services should be). In the end I don't pursue an absolute truth. Things are often gradients, one can pick whatever tone seems more reasonable.
- jameshart 3y agoSure, but as soon as you create linkage between them - if the state of machine A affects what transitions are possible when in machine B and vice versa - then you don’t really have two state machines, you have a single Cartesian state machine combining both. Or you have a pair of metastatemachines which aren’t able to be analyzed in the same way as an independent state machine. It’s like the difference between solving a maze, and solving a maze with constantly moving walls and traps in it.