• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Multiple instances and background batch threads.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Multiple instances and background batch threads.


  • Subject: Re: Multiple instances and background batch threads.
  • From: Andrew Lindesay <email@hidden>
  • Date: Thu, 9 Oct 2008 13:07:33 +1300

Hello Quinton;

You could perhaps have a DA invoked using "curl" from crontab which then enqueues a request into a messaging server. The request could then be consumed by a "singleton reader" to ensure the requests were dealt with serially? I guess this doesn't support redundancy. Otherwise I would use a database table as a lock that manually- implements optimistic locking to avoid concurrency issues.

cheers.

I have a scenario where I need my application to periodically fire off background batch tasks in a separate thread, but only need one of the possible instances to perform this task at any given interval. What technique do people normally use with WO to perform this sort of election/locking between instances so that only one of them at a time ever attempts to do the work?

___ Andrew Lindesay www.lindesay.co.nz

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Multiple instances and background batch threads. (From: Q <email@hidden>)

  • Prev by Date: Re: Multiple instances and background batch threads.
  • Next by Date: Re: Multiple instances and background batch threads.
  • Previous by thread: Re: Multiple instances and background batch threads.
  • Next by thread: Re: Multiple instances and background batch threads.
  • Index(es):
    • Date
    • Thread