121

How are Akka actors different from Go channels? How are two related to each othe...

 6 years ago
source link: https://www.quora.com/How-are-Akka-actors-different-from-Go-channels-How-are-two-related-to-each-other
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

How are Akka actors different from Go channels? How are two related to each other?

Ad by JetBrains
Go full stack with GoLand.
A clever Go IDE with extended support for JavaScript, TypeScript, and databases.
Originally Answered: How are Akka actors are different than Goroutines and Channels?

Roland Kuhn has given a good description of Akka actors and Go channels/goroutines. I have worked extensively with both and would like to offer a few additional comments.

Firstly, it is important to stress that CSP allows rendezvous-based synchronisation between goroutines using channels, and channels can optionally include buffering.

When one goroutine attempts to send on an unbuffered channel, it checks whether the other party is present. If not, it sits waiting, during which it consumes no CPU and only a little memory. When the second goroutine arrives at the rendezvous point, data is exchang


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK