There is a popular open source library that allows Java applications to run scheduled jobs (according to a cron-like expression). However if the user includes this lib in their project, and has multiple instances of the app running (myapp01, myapp02, etc.), then the library currently doesn't have a managed/clustered/distributed capability to know that a particular job should only run on one of these instances at any given time.
I'm writing a plugin/extension that will allow for this, but I can't think of the proper name to give this feature. The best I can come up with is "clustered singletons", meaning, scheduled jobs that can live on several machines at once, but the machines will magically "elect" only one of them to run the job at any given time.
Anything computer sciency that describes this?
Aucun commentaire:
Enregistrer un commentaire