I am a bit confused about how and why FSMs are considered irrelevant with Akka Typed. What I mean is the first statement on the page Behaviors as Finite state machines (https://doc.akka.io/docs/akka/current/typed/fsm.html): “No support is needed in Akka Typed as it is straightforward to represent FSMs with behaviors.”
While it may be technically true that this is the case, the FSM DSL actually added so much readability that I am already grieving for it. Another point, which is less aesthetical than functional and which makes me doubt if all untyped FSM use cases can be realized using Behaviors, is how Behaviours are supposed to replace
onTransition? The webpage says that “Any side effects that were previously done in a
onTransition block go directly into the behaviors.” How is this possible? I mean, how can I specify logic that should be executed between two specific behaviors?