<div dir="ltr">Gotcha. Thanks! I was using Reject earlier but I guess Ack is sufficient to what I need to do.</div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, May 12, 2017 at 8:24 AM, Bastien CHAMAGNE <span dir="ltr"><<a href="mailto:bchamagne@idmog.com" target="_blank">bchamagne@idmog.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    <p>Once a consumer reads a message, that message goes from "READY"
      to "UNACKED". It's not deleted that fast! As long as it's in
      "UNACKED" state, it will not be delivered to anyone else. Then
      once your consumer have finished processing the message, it must
      send an ACK that will remove the message from rabbitMQ. If your
      consumer crashes midway through, there will be no ACK and rabbitMQ
      knows that it can be redistributed (message is "READY" again). <br>
    </p><div><div class="h5">
    <br>
    <div class="m_139246108100739160moz-cite-prefix">On 12/05/2017 15:16, Kareem Hepburn
      wrote:<br>
    </div>
    <blockquote type="cite">
      <div dir="ltr">What about reject? The thing is, if there are
        multiple nodes of a worker that's consuming the message I want
        it that if a worker already read the message, it will not be
        possible to for it to be delivered to the other consumers so I
        am guessing ack will do this for me and reject will requeue it
        if my process fails.
        <div><br>
        </div>
        <div>Am I correct on this?</div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On Fri, May 12, 2017 at 7:56 AM,
          Bastien CHAMAGNE <span dir="ltr"><<a href="mailto:bchamagne@idmog.com" target="_blank">bchamagne@idmog.com</a>></span> wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div bgcolor="#FFFFFF" text="#000000">
              <p>Hi Kareem, you should ack only when your application
                have processed the message. See <a class="m_139246108100739160m_-8435364828102131017moz-txt-link-freetext" href="https://www.rabbitmq.com/confirms.html" target="_blank">https://www.rabbitmq.com/confi<wbr>rms.html</a></p>
              <div>
                <div class="m_139246108100739160h5">
                  <p><br>
                  </p>
                  <div class="m_139246108100739160m_-8435364828102131017moz-cite-prefix">On
                    12/05/2017 13:55, Kareem Hepburn wrote:<br>
                  </div>
                </div>
              </div>
              <blockquote type="cite">
                <div>
                  <div class="m_139246108100739160h5">
                    <div dir="ltr">Is it possible with RabbitMQ to
                      consume a message without it being deleted and be
                      deleted manually?
                      <div><br>
                      </div>
                      <div>Because let's say I consumed a message and
                        started to process it and half way through
                        processing it the application fails. I want to
                        be able to re-process that message again. Is it
                        possible to not delete the message and delete it
                        manually after my process has successfully
                        completed?</div>
                      <div><br>
                      </div>
                      <div>To avoid duplication, I plan to use a
                        secondary database, either Redis or Memcache to
                        store the ID of the message to ensure that it's
                        not being processed by more than one
                        application.</div>
                      <div><br>
                      </div>
                      <div>Thanks!</div>
                      <div>
                        <div><br>
                        </div>
                        -- <br>
                        <div class="m_139246108100739160m_-8435364828102131017gmail_signature" data-smartmail="gmail_signature">
                          <div dir="ltr">
                            <div>
                              <div dir="ltr">
                                <div>
                                  <div dir="ltr">
                                    <div dir="ltr">
                                      <p style="color:rgb(0,0,0);font-family:Helvetica,Arial,sans-serif;font-size:14px;line-height:16px"><a href="http://kareemgan.com" target="_blank"><img src="https://www.filepicker.io/api/file/bA8XKrWKSkK0BI8wzeUM/convert?w=150&h=55&fit=clip" alt="kareemgan" border="0"></a></p>
                                      <p style="font-family:Helvetica,Arial,sans-serif;font-size:14px;line-height:16px;color:rgb(153,153,153)"><span style="font-weight:bold;color:rgb(4,4,4)">Kareem Gan</span> <span>/</span> <span style="color:rgb(4,4,4)">Software
                                          Engineer</span><br>
                                        <a href="mailto:kareemgan@gmail.com" style="color:rgb(82,198,6)" target="_blank">kareemgan@gmail.com</a></p>
                                      <p><a href="https://github.com/magicalbanana" target="_blank"><img src="http://i.imgur.com/1xutCgX.png" alt="Skype"></a> <a href="http://facebook.com/dopankey" target="_blank"><img src="http://i.imgur.com/VMddafd.png" alt="Facebook"></a> <a href="http://@kareemgan" target="_blank"><img src="http://i.imgur.com/oGRkUcK.png" alt="Twitter"></a> <a href="https://plus.google.com/108299918329354290658" target="_blank"><img src="http://i.imgur.com/oYZJ1x0.png" alt="Google Plus"></a> <a href="https://linkedin.com/in/kareemgan" target="_blank"><img src="http://i.imgur.com/p2pS6d0.png" alt="Linkedin"></a> <a href="http://kareemgan" target="_blank"><img src="http://i.imgur.com/wDtczaw.png" alt="Skype"></a></p>
                                      <p style="font-family:Helvetica,Arial,sans-serif;color:rgb(4,4,4);line-height:16px">This
                                        e-mail message may contain
                                        confidential or legally
                                        privileged information and is
                                        intended only for the use of the
                                        intended recipient(s). Any
                                        unauthorized disclosure,
                                        dissemination, distribution,
                                        copying or the taking of any
                                        action in reliance on the
                                        information herein is
                                        prohibited. E-mails are not
                                        secure and cannot be guaranteed
                                        to be error free as they can be
                                        intercepted, amended, or contain
                                        viruses. Anyone who communicates
                                        with us by e-mail is deemed to
                                        have accepted these risks.
                                        Company Name is not responsible
                                        for errors or omissions in this
                                        message and denies any
                                        responsibility for any damage
                                        arising from the use of e-mail.
                                        Any opinion and other statement
                                        contained in this message and
                                        any attachment are solely those
                                        of the author and do not
                                        necessarily represent those of
                                        the company.</p>
                                    </div>
                                  </div>
                                </div>
                              </div>
                            </div>
                          </div>
                        </div>
                      </div>
                    </div>
                    <br>
                    <fieldset class="m_139246108100739160m_-8435364828102131017mimeAttachmentHeader"></fieldset>
                    <br>
                  </div>
                </div>
                <span>
                  <pre>______________________________<wbr>_________________
erlang-questions mailing list
<a class="m_139246108100739160m_-8435364828102131017moz-txt-link-abbreviated" href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a>
<a class="m_139246108100739160m_-8435364828102131017moz-txt-link-freetext" href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/list<wbr>info/erlang-questions</a>
</pre>
    </span></blockquote>
    

  </div>


______________________________<wbr>_________________

erlang-questions mailing list

<a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a>

<a href="http://erlang.org/mailman/listinfo/erlang-questions" rel="noreferrer" target="_blank">http://erlang.org/mailman/list<wbr>info/erlang-questions</a>


</blockquote></div>

<div>
</div>-- 
<div class="m_139246108100739160gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><p style="color:rgb(0,0,0);font-family:Helvetica,Arial,sans-serif;font-size:14px;line-height:16px"><a href="http://kareemgan.com" target="_blank"><img src="https://www.filepicker.io/api/file/bA8XKrWKSkK0BI8wzeUM/convert?w=150&h=55&fit=clip" alt="kareemgan" border="0"></a></p><p style="font-family:Helvetica,Arial,sans-serif;font-size:14px;line-height:16px;color:rgb(153,153,153)"><span style="font-weight:bold;color:rgb(4,4,4)">Kareem Gan</span> <span>/</span> <span style="color:rgb(4,4,4)">Software Engineer</span>
<a href="mailto:kareemgan@gmail.com" style="color:rgb(82,198,6)" target="_blank">kareemgan@gmail.com</a></p><p style="color:rgb(0,0,0);font-family:'Times New Roman';font-size:14px;line-height:16px"><a href="https://github.com/magicalbanana" target="_blank"><img src="http://i.imgur.com/1xutCgX.png" alt="Skype"></a> <a href="http://facebook.com/dopankey" target="_blank"><img src="http://i.imgur.com/VMddafd.png" alt="Facebook"></a> <a href="http://@kareemgan" target="_blank"><img src="http://i.imgur.com/oGRkUcK.png" alt="Twitter"></a> <a href="https://plus.google.com/108299918329354290658" target="_blank"><img src="http://i.imgur.com/oYZJ1x0.png" alt="Google Plus"></a> <a href="https://linkedin.com/in/kareemgan" target="_blank"><img src="http://i.imgur.com/p2pS6d0.png" alt="Linkedin"></a> <a href="http://kareemgan" target="_blank"><img src="http://i.imgur.com/wDtczaw.png" alt="Skype"></a></p><p style="font-family:Helvetica,Arial,sans-serif;color:rgb(4,4,4);line-height:16px">This e-mail message may contain confidential or legally privileged information and is intended only for the use of the intended recipient(s). Any unauthorized disclosure, dissemination, distribution, copying or the taking of any action in reliance on the information herein is prohibited. E-mails are not secure and cannot be guaranteed to be error free as they can be intercepted, amended, or contain viruses. Anyone who communicates with us by e-mail is deemed to have accepted these risks. Company Name is not responsible for errors or omissions in this message and denies any responsibility for any damage arising from the use of e-mail. Any opinion and other statement contained in this message and any attachment are solely those of the author and do not necessarily represent those of the company.</p></div></div></div></div></div></div></div>
</div>



</blockquote>
</div></div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><p style="color:rgb(0,0,0);font-family:Helvetica,Arial,sans-serif;font-size:14px;line-height:16px"><a href="http://kareemgan.com" target="_blank"><img src="https://www.filepicker.io/api/file/bA8XKrWKSkK0BI8wzeUM/convert?w=150&h=55&fit=clip" alt="kareemgan" border="0"></a></p><p style="font-family:Helvetica,Arial,sans-serif;font-size:14px;line-height:16px;color:rgb(153,153,153)"><span style="font-weight:bold;color:rgb(4,4,4)">Kareem Gan</span> <span>/</span> <span style="color:rgb(4,4,4)">Software Engineer</span><br><a href="mailto:kareemgan@gmail.com" style="color:rgb(82,198,6)" target="_blank">kareemgan@gmail.com</a></p><p style="color:rgb(0,0,0);font-family:'Times New Roman';font-size:medium"></p><p style="color:rgb(0,0,0);font-family:'Times New Roman';font-size:14px;line-height:16px"><a href="https://github.com/magicalbanana" target="_blank"><img src="http://i.imgur.com/1xutCgX.png" alt="Skype"></a> <a href="http://facebook.com/dopankey" target="_blank"><img src="http://i.imgur.com/VMddafd.png" alt="Facebook"></a> <a href="http://@kareemgan" target="_blank"><img src="http://i.imgur.com/oGRkUcK.png" alt="Twitter"></a> <a href="https://plus.google.com/108299918329354290658" target="_blank"><img src="http://i.imgur.com/oYZJ1x0.png" alt="Google Plus"></a> <a href="https://linkedin.com/in/kareemgan" target="_blank"><img src="http://i.imgur.com/p2pS6d0.png" alt="Linkedin"></a> <a href="http://kareemgan" target="_blank"><img src="http://i.imgur.com/wDtczaw.png" alt="Skype"></a></p><p style="font-family:Helvetica,Arial,sans-serif;color:rgb(4,4,4);line-height:16px">This e-mail message may contain confidential or legally privileged information and is intended only for the use of the intended recipient(s). Any unauthorized disclosure, dissemination, distribution, copying or the taking of any action in reliance on the information herein is prohibited. E-mails are not secure and cannot be guaranteed to be error free as they can be intercepted, amended, or contain viruses. Anyone who communicates with us by e-mail is deemed to have accepted these risks. Company Name is not responsible for errors or omissions in this message and denies any responsibility for any damage arising from the use of e-mail. Any opinion and other statement contained in this message and any attachment are solely those of the author and do not necessarily represent those of the company.</p></div></div></div></div></div></div></div>
</div>