When this gets really, really awesome is when we hook up health checks for
mongo-server.mofoprod.net, and we have the app switch from writing to the
db and write to the queues in us-west if say, us-east went down.




On Wed, Apr 24, 2013 at 9:19 PM, Chris McAvoy <notifications@github.com>wrote:

> In writedemomessage.js:
>
> > @@ -0,0 +1,13 @@
> > +// writes a message to the queue...for testing
> > +// I promise to convert this to nock
>
> if you want to try this at home, set up a SQS queue, set your environment
> variables appropriately (see config.js) and then run this. 10 messages will
> be written to your queue. Then run queuereader.js and the messages dump to
> mongo. The fun part is, if you run this again, while the queuereader is
> still running, it'll grab the messages.
>
> yes. it's a basic queue, but yes...it's exciting.
>
> /cc @jdotpz <https://github.com/jdotpz> because he loves amazon.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/mozilla/aestimia/pull/7/files#r3950566>
> .
>