← Back to team overview

launchpad-dev team mailing list archive

Re: RabbitMQ and codehosting

 

On Thu, 08 Oct 2009 17:21:20 -0400
Aaron Bentley <aaron@xxxxxxxxxxxxx> wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Bjorn Tillenius wrote:
> > My question would be, why do you need to run Jobs on demand; what's the
> > end-user visible change here?
> 
> The end-user visible change is that there is no lag between them
> requesting an operation and the operation starting.

Do the various polling scripts have to connect to the database? If so,
and if the only message that needs to be sent is "there's something to
do", then PostgreSQL's LISTEN and NOTIFY might be enough to help
reduce lag without introducing new moving parts:

  http://www.postgresql.org/docs/8.4/interactive/sql-listen.html
  http://www.postgresql.org/docs/8.4/interactive/sql-notify.html

Stub might have reasons not to though, and I have no idea if it works
with replication.

Attachment: signature.asc
Description: PGP signature


Follow ups

References