logoalt Hacker News

nvarsj • today at 1:02 PM • 3 replies • view on HN

Ime with Akka and Beam, the main drawback of actor systems is debugging. Because you’ve now forced your problem into a distributed problem always. Beam is much better at least since you can execute commands in the runtime to check things. Akka is almost impossible and I don’t miss working with it at all. Unclear here if the author has thought about it as they focus on concurrency bugs which imo are generally easier to reason about in a traditional threaded system.


Replies

jghn • today at 1:57 PM

I also had this experience with Akka. For people who were able to build up a good mental model of what was what, it wasn't so bad, but still not as efficient as with a standard model. And of course, not all people are capable of having a sufficient mental picture and were totally lost.

I liked it, but my takeaway was that the negatives outweighed the positives, especially when factoring in not everyone was capable of dealing with it. I'm sure there are use cases where that calculus changes, but not the ones I had.

fpoling • today at 1:34 PM

With actor systems with no shared memory and explicit state implementing time traveling debug support is rather straightforward and gives you a record of all state transitions not just a call stack. This is vastly more useful.

The drawback is that one can have stack trace in prod but no time-traveling debugging. But then a typical workaround is to log explicitly state transitions. Depending on how it is done it can be sufficiently ergonomic and still gives more information than stack traces.

ch4s3 • today at 1:12 PM

I’ve never worked with Akka but I’ve always found GenServers on the BEAM pretty easy to debug. You outline all of your state transitions and you can usually see why something is going wrong.

➕ show 1 reply