Spring Boot RabbitMQ Retry mechanism acknowledge and reject

แชร์
ฝัง
  • เผยแพร่เมื่อ 11 ก.ย. 2024
  • Enjoy! :-)
    Thank you for commenting and asking questions.
    Library sign up referral link:
    lbry.tv/$/invi...
    Get 25 % discount on your Minecraft servers at Shockbyte.com by using this referral link:
    shockbyte.com/...
    Checkout or buy the Introduction to Algorithms book at Amazon:
    amzn.to/2RK3Lur
    The code is located here:
    github.com/eki...
    Follow me on twitter:
    / mikemoelnielsen
    Chat on Discord:
    / discord
    Support me on Patreon:
    / mikemoellernielsen
    As an Amazon Associate I earn from qualifying purchases.
    Check out the stuff that I like (always updated):
    kit.co/MikeMoe...

ความคิดเห็น • 19

  • @aviralsrivastava4504
    @aviralsrivastava4504 3 ปีที่แล้ว +1

    Thanks buddy. This was awesome.

    • @MikesTechCorner
      @MikesTechCorner  3 ปีที่แล้ว

      Glad you enjoyed it. Thank you for watching. :-)

  • @rahuldeepattri9244
    @rahuldeepattri9244 3 ปีที่แล้ว +1

    Awesome video thanks!

    • @MikesTechCorner
      @MikesTechCorner  3 ปีที่แล้ว +1

      No problem!

    • @rahuldeepattri9244
      @rahuldeepattri9244 3 ปีที่แล้ว

      @@MikesTechCorner One question though when we a retrying for a message, the thread that was responsible for message processing would be blocked and will not be able to any other tasks right?

    • @MikesTechCorner
      @MikesTechCorner  3 ปีที่แล้ว

      @@rahuldeepattri9244 You can route the failed messages to a timeout queue or use the backoff plugin

    • @rahuldeepattri9244
      @rahuldeepattri9244 3 ปีที่แล้ว

      @@MikesTechCorner Thanks for your response! Agreed then spring retry mechanism on timeout queue makes more sense. And the back off plugin you mentioned is a rabbit mq plugin?

  • @dimitrihautot3093
    @dimitrihautot3093 ปีที่แล้ว +1

    Hi Mike, isn't a missing @EnableRetry the cause of the programmatic approach failure?

    • @MikesTechCorner
      @MikesTechCorner  ปีที่แล้ว

      I would setup a special queue for retries and then a timeout to wait for a system to come up again. Maybe a delay of 15 min or so.

  • @sumedhabhatkar9718
    @sumedhabhatkar9718 3 ปีที่แล้ว +1

    How did you applied retry mechanism? please tell how you implemented at end

    • @MikesTechCorner
      @MikesTechCorner  3 ปีที่แล้ว

      Try to clone the project and look in the code. I have uploaded the project and added link in the description.

  • @back2basics961
    @back2basics961 2 ปีที่แล้ว +1

    Hi how can I acknowledge a message on my listener and where can I see that my message is being acknowledge from. Appreciate if you could help me out!

    • @MikesTechCorner
      @MikesTechCorner  2 ปีที่แล้ว

      I'm not in RabbitMQ mode right now... I might dig into again at some point though... In other words I don't know :)

  • @naoko1927
    @naoko1927 3 ปีที่แล้ว +1

    Can the dead letter messages in the dead letter queue requeue back to the origian queue ?

    • @MikesTechCorner
      @MikesTechCorner  3 ปีที่แล้ว

      Yes easily. Setup a timeout

    • @MikesTechCorner
      @MikesTechCorner  3 ปีที่แล้ว

      Or manually "shovel" the messages to the original queue.

    • @naoko1927
      @naoko1927 3 ปีที่แล้ว

      @@MikesTechCorner I setup time to live to the dead letter queue but it doesn't work

    • @naoko1927
      @naoko1927 3 ปีที่แล้ว

      @@MikesTechCorner So I have to bind dead letter queue to another exchange and bind that exchange to original queue, but I don't know whether it is a good way

    • @MikesTechCorner
      @MikesTechCorner  3 ปีที่แล้ว

      @@naoko1927 Or you setup a timeout on the dlq and another dlq exchange which could be the original exchange