<html><head><style>body{font-family:Helvetica,Arial;font-size:13px}</style></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;">SQS largely takes care of itself. One issue I’ve run into with SQS is that in its default mode reading messages from a nearly empty queue may return no messages (the reason being that the queue is distributed across many machines and reads by default will hit a single partition in the queue, if that one has no messages then the api call will return no message).</div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;"><br></div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;">You can address this by using the long polling mode - calls to read a message will block up to a configurable limit (upto 20s) before either returning no message or a message that has arrived in the wait period and this mode doesn’t suffer from the limitation I describe. This can either be configured as a setting on the queue or passed as a parameter to individual api calls. If Shoryuken doesn’t support the latter then you might want to set this as a global queue property.</div> <br> <div id="bloop_sign_1432895768892158976" class="bloop_sign">Fred</div> <br><p class="airmail_on" style="color:#000;">On 29 May 2015 at 11:31:30, Garry Shutler (<a href="mailto:garry@robustsoftware.co.uk">garry@robustsoftware.co.uk</a>) wrote:</p> <blockquote type="cite" class="clean_bq"><span><div><div></div><div>
<title></title>
<div dir="ltr">Hi all,
<div><br></div>
<div>I'm looking into moving our messaging from Resque to <a href="http://aws.amazon.com/sqs/">SQS</a>.</div>
<div><br></div>
<div>I'm looking at using <a href="https://github.com/phstc/shoryuken">Shoryuken</a> as it seems to
be the most mature gem, follows the patterns of Sidekiq, and
supports ActiveJob which means we'll be able to switch in
Resque/Sidekiq for development as there's no way to run SQS
locally.</div>
<div><br></div>
<div>Do any of you have any "from the trenches" experience you can
share around SQS and/or Shoryuken? In particular I've not found
much useful stuff on monitoring and administering the queues
themselves.<br></div>
<div><br></div>
<div>Thanks in advance,</div>
<div>Garry</div>
<div><br clear="all">
<div>
<div class="gmail_signature">
<div dir="ltr"><b>Garry Shutler</b>
<div>
<div><a href="http://twitter.com/gshutler" target="_blank">@gshutler</a></div>
<a href="http://gshutler.com/" target="_blank">gshutler.com</a></div>
</div>
</div>
</div>
</div>
</div>
_______________________________________________
<br>Chat mailing list
<br>Chat@lists.lrug.org
<br>Archives: http://lists.lrug.org/pipermail/chat-lrug.org
<br>Manage your subscription: http://lists.lrug.org/options.cgi/chat-lrug.org
<br>List info: http://lists.lrug.org/listinfo.cgi/chat-lrug.org
<br></div></div></span></blockquote></body></html>