Skip to content

Question: What are the main reasons one would choose to migrate to Coyote's async actors programming model? #398

Answered by akashlal
jhwj9617 asked this question in Q&A
Discussion options

You must be logged in to vote

Actors present a different programming model than Tasks, are a more natural fit for some kinds of applications. Actor programs are typically free of locks, and most synchronization is managed by the runtime. If you find yourself designing your application as a bunch of state machines passing messages between themselves (typical for most distributed protocols) then Actors present a more natural way of mapping those state machines to code.

I'd recommend that you use actors only if it simplifies your code. Make this decision early (before writing your code) so that there is no migration overhead. If you already have Tasks code that you're happy with, then no need to migrate.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by pdeligia
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #327 on October 17, 2022 17:01.