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

Behavior of Tell vs Notify #191

Open
NatElkins opened this issue Dec 11, 2024 · 2 comments
Open

Behavior of Tell vs Notify #191

NatElkins opened this issue Dec 11, 2024 · 2 comments

Comments

@NatElkins
Copy link

Hi,

Great project! I am trying to compare the experience of using Orleankka to using Akka.NET. The default messaging pattern in Akka.NET is to use Tell, rather than Ask. I see that in Orleankka, a Tell method is also used. The default behavior of Tell in Akka.NET is to return as soon as the message has been added to the Actor's mailbox. Does Tell have the same behavior in Orleankka? I notice that it returns a task which gets awaited. And how does this differ from Notify?

Here's a recent article I read which may be relevant: https://petabridge.com/blog/actorref-tell-ask/

Thank you!

@yevhen
Copy link
Member

yevhen commented Dec 12, 2024 via email

@NatElkins
Copy link
Author

Got it, thank you for the quick response!

If that is the case, why even have the difference between Ask and Tell? Is it just about signaling whether something will be returned back to the sender or not? Also, the key point of Tell in Akka.NET is that it returns successfully only if the message is added to the target grain's mailbox. According to the docs, OneWay is truly one way.

One-way requests return to the caller immediately and don't signal failure or completion. A one-way request doesn't even guarantee that the callee received the request.

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

2 participants