简体   繁体   中英

Is it possible to limit the scheduler to one actor in Akka.Net

I need to send a message to actor on periodic bases. Based on the cluster configurations, there are 3 nodes available. So every actor in the node is scheduling the message. But I want one actor to do this job so that I can avoid reprocessing and duplicate processing.

Is there any way that we can schedule a message or a task from Cluster or any other way to solve this problem.

I think you can make a cluster singleton , that way you will only have one of that actor type. For scheduling you can use Quartz Actor

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM