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

Rule 5.1 needs a *good* example #38

Open
ches opened this issue Jun 10, 2016 · 1 comment
Open

Rule 5.1 needs a *good* example #38

ches opened this issue Jun 10, 2016 · 1 comment

Comments

@ches
Copy link

ches commented Jun 10, 2016

5.1. SHOULD evolve the state of actors only in response to messages received from the outside

This rule shows an example of the anti-pattern but gives insufficient guidance on how to do better. This is exacerbated by the back-pressure rule, 5.4, which does precisely the anti-pattern in its code sample, albeit with an admonishing comment.

@colincgn
Copy link

I would agree on a better example, I am not sure on the alternative either if this anti-pattern is an actual example from the Akka docs?

http://doc.akka.io/docs/akka/current/scala/howto.html#Scheduling_Periodic_Messages

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