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

Scheduling messages #87

Closed
rogeralsing opened this issue Feb 2, 2017 · 3 comments
Closed

Scheduling messages #87

rogeralsing opened this issue Feb 2, 2017 · 3 comments

Comments

@rogeralsing
Copy link
Collaborator

In Akka, there is the ActorSystem.Scheduler
In Proto.Actor, I would rather like to see some Scheduler interface, where we can provide different kinds of implementations.
e.g. in mem, cron job based etc.

Users can then either inject the scheduler they want into their actors, or, just have a package wide instance of whatever scheduler they want to use.

If we do this as part of the Proto.Actor library, I would like to see this as a separate package to keep the API surface as minimal as possible in the core actor package.

@bryanpkc
Copy link
Contributor

I wrote a Scheduler interface for protoactor-go which is quite similar to the AbstractScheduler interface in Akka. I am curious what your thoughts are on a "cron job-based" scheduler. I know how cron works but I am not seeing how the interface (with methods like schedule and scheduleOnce) works with a cron table. Can you point me to an Akka example?

@rogeralsing
Copy link
Collaborator Author

In .NET we decided to go for a more opt-in model:
https://github.com/AsynkronIT/protoactor-dotnet/tree/dev/src/Schedulers/Proto.Scheduler.SimpleScheduler

It is an external package which can be evolved separately and do not require any internal changes to the core framework.

@nikoszoisse
Copy link

what about the go part? IS there a scheduler?

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

No branches or pull requests

3 participants