Jeremy
Member since Mar 5, 2015
- Profile: /members/12562-jeremy.htm
- Comments: 3
Recent Blog Comments By Jeremy
-
Shedding The Monolithic Application With AWS Simple Queue Service (SQS) And Node.js
Posted on Mar 19, 2015 at 6:08 AM
@Joseph, I think your solution wouldn't loop, it'd only poll once. var poll = true; function pollQueueForMessages() { return receiveMessage().then(processMessage).finally(function() { if(poll) { process.nextTick(pollQueueForMessages) } }); } pollQueueForMessages(); It looks rec... read more »
-
Shedding The Monolithic Application With AWS Simple Queue Service (SQS) And Node.js
Posted on Mar 11, 2015 at 3:16 AM
@Ben, The great advantage to using ElasticBeanstalk worker is that you don't need to worry about all the polling code etc. and having to make sure you do it right and clean up correctly. And EB will auto scale the workers. The disadvantage is that to test it from your own development machine you n... read more »
-
Shedding The Monolithic Application With AWS Simple Queue Service (SQS) And Node.js
Posted on Mar 5, 2015 at 11:29 AM
I've also been doing this. I've had a lot of success using ElasticBeanstalk to host the workers. The beauty of this is that EB workers get SQS messages as standard HTTP POSTs, and you reply with a 200 for success, or an error status code, and EB will do the right thing with the message. This makes ... read more »