Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lesson 2.2: what is more common: ReceiveActor, or Untyped Actor with pattern matching? #317

Open
JohnCgp opened this issue Nov 5, 2020 · 0 comments

Comments

@JohnCgp
Copy link

JohnCgp commented Nov 5, 2020

I'm just starting with Akka and have a question regarding whether to use ReceiveActors or UntypedActors, as I've seen them both used.

My understanding is that, as of C# 7 introducing pattern matching, UntypedActors are favoured. The docs mention "UntypedActor API is recommended for C# 7 users.", and I saw a talk by Aaron Stannard at NDC Sydney 2016 also mentioning (at 27m05s) pattern matching would be the way to go once it arrived.

This lesson does not seem to echo that sentiment though; are there any reasons to prefer ReceiveActor over UntypedActor?

I've searched around to see if there is any consensus, but haven't found anything. Issue #236 also asked the question, but didn't receive any response.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant