Hi,

I use RabbitMQ with a max length of 1 to ensure that only one of my nodejs
node catches the job and executes it.

But I use setInterval to launch them.

The advantage is that you can remotely send a message through the queue to
force a node executing your callback task and with any langage supporting
the amqp (this can even be done with the rabbit management UI).

--
Edouard Buschini
@moonbocal
On Nov 11, 2014 4:29 PM, "Aria Stewart" <[email protected]> wrote:

>
> > On Nov 10, 2014, at 6:14 PM, Ω Alisson <[email protected]> wrote:
> >
> > Does anyone knows a good job queue that has atomicity and scheduled jobs?
>
> Atomicity of what?
>
> It may be that you want to break out these functions: if you make your
> tasks idempotent, you become resilient to all kinds of failures of your job
> queue -- and in fact can use one that's very fast and limited like Gearman.
>
> You can use cron for scheduling -- or just a simple daemon that looks up
> the next time to run something and stuffs it in the queue then.
>
> What guarantees do you need from your queue vs the jobs you schedule on
> it? Why?
>
> Aria
>
> --
> Job board: http://jobs.nodejs.org/
> New group rules:
> https://gist.github.com/othiym23/9886289#file-moderation-policy-md
> Old group rules:
> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
> ---
> You received this message because you are subscribed to the Google Groups
> "nodejs" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/nodejs/BD86CEFE-8927-41F9-971A-868673E20BFD%40nbtsc.org
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
Job board: http://jobs.nodejs.org/
New group rules: 
https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/nodejs/CAAK0_j8oGzOdMmDvJn%2BD%2B9ZPwdwCSx57oKJnKU136xhGQttMgA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to