Actor Myths

Actors are the new concurrency. They are everywhere. People make bold claims about actors, and while I do not agree with many of them, two in particular I regard as myths. Here they are:

  1. Actors are a shared nothing architecture
  2. Actors are easier to get right because of their shared nothing architecture

I know I’m alone with calling those myths, but here we go. Considering the first myth. If they share nothing, they could not collaborate on data. Sharing immutable messages does not help for getting data synced up again. So this can’t be the way to collaborate. Indeed actors do share everything! Each actor can be considered a data structure with state and a write lock (synchronized in Java).

The second myth. Actors are easier to get right because they share nothing and therefor do not have locks. As argued above they have locks, so this can’t be the reason why they are easier to get right. I consider two characteristics of actors to be the reason for them being easier:

  1. They only can hold one lock at a time (when using synchronized send messages). This is a common approach to prevent deadlocks in locking architectures.
  2. They mostly send asynchronous messages. This prevents the common problems that arise from holding locks and blocking. In locking architectures when accessing locks in an asynchronous way (e.g. with futures and timeouts) there are also no deadlocks for the calling thread.

I would like to learn something from this. So please keep your flaming minimal and help me understand possibles errors in my thinking instead.

Update: If you do not believe me concerning the shared-nothing part, read the example from James

113 thoughts on “Actor Myths”

  1. Pingback:
  2. Pingback: uggs Sko
  3. Pingback: parajumpers norge
  4. Pingback: louis vuitton salg
  5. Pingback: LhBiqoXi
  6. Pingback: parajumpers salg
  7. Pingback: nike air max solde
  8. Pingback: nike air max 2015
  9. Pingback: roger vivier shoes
  10. Pingback: 財布コピー
  11. Pingback: コーチ 意味
  12. Pingback: nike air max 92
  13. Pingback: fifa 16 coins
  14. Pingback: electric scooter
  15. Pingback: sell fifa coins
  16. Pingback: fifa 14 coins free
  17. Pingback: fifa world coins
  18. Pingback: fifa 14 coins xbox
  19. Pingback: fifa shop coins
  20. Pingback: ultimate coins
  21. Pingback: xbox fifa 14 coins
  22. Pingback: nike outlet
  23. Pingback: 腕時計 無印
  24. Pingback: Ralph Lauren Polo
  25. Pingback: fifa 16 coins
  26. Pingback: air max shoes
  27. Pingback: FENDI ?????
  28. Pingback: cs go start
  29. Pingback: cs go item drops
  30. Pingback: case key cs go
  31. Pingback: 5on5 csgo
  32. Pingback: Google
  33. Pingback: coffee
  34. Pingback: coffee
  35. Pingback: coffee
  36. Pingback: girne üniversite
  37. Pingback: floor lamination
  38. Pingback: bantningspiller

Comments are closed.