Build Priority Background Jobs & Dead Letter Queues with NATS JetStream | Rethink Connectivity ep 12

แชร์
ฝัง
  • เผยแพร่เมื่อ 27 ส.ค. 2024
  • Job/Worker queues are an extremely common distributed computing pattern. In this episode, Jeremy goes over the architecture of a work queue with priority and dead letter queue semantics, then uses the flexibility of NATS JetStream to express this pattern from scratch.
    Source code and text tutorial available here:
    github.com/Con...
    Sign up for RethinkConn 2024 for Free!:
    www.crowdcast....
    Don't want to host NATS yourself? Sign up for Synadia Cloud for free: cloud.synadia....
    NATS is a connective technology powering modern distributed systems, unifying Cloud, On-Premise, Edge, and IoT.
    Join the NATS Community on Slack: slack.nats.io
    Learn More about NATS at docs.nats.io/

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

  • @wayneeseguin
    @wayneeseguin 8 หลายเดือนก่อน +5

    ❤ Sharing practical examples is amazing, thanks Jeremy!!! 😊

  • @vamshiaruru5494
    @vamshiaruru5494 8 หลายเดือนก่อน +7

    Great video!
    One thing I do using nakWithDelay is using it for supporting scheduling messages into the future. Many times you don't want to send an email now, you want to send it 1 or 2 hours into the future. So I set a header with schedule time, and on consumer end I check this header and nak with delay so that jetstsream redelivers this message at that time. This means your number of max attempts should be whatever you want + 1 since the first nak is not actually a failure.

  • @marvinlnnx
    @marvinlnnx 8 หลายเดือนก่อน +2

    Grateful for the effort you put into creating such informative videos. Really appreciate the time and effort you invest in making these videos. Thank you! 👍

  • @maciejgebarski7850
    @maciejgebarski7850 8 หลายเดือนก่อน +1

    Hi thank you very much for new material :-). It's great!. I glad you publish regular, so learning is smooth :-)

  • @houbill5363
    @houbill5363 6 หลายเดือนก่อน +1

    Great video!! Thanks for all your efforts!

  • @imagineabout4153
    @imagineabout4153 หลายเดือนก่อน

    I just deployed a nice NATS server pubs and subs and I'm about to stress test it. I hope it goes well cause it was a breeze to integrate. Well done! ❤

  • @pmzajaczkowski
    @pmzajaczkowski 8 หลายเดือนก่อน +3

    When the message has reached the redeliveries limit, is there any way to "reset" this counter for this message, so it can be redelivered again? That might be useful when you had a bug in your consumer that was preventing the delivery, but then you've fixed it and now it should be capable of processing these pending messages normally.

  • @jkunnen
    @jkunnen 8 หลายเดือนก่อน

    Thanks for the great video!

  • @arkantos14821
    @arkantos14821 5 หลายเดือนก่อน

    Thanks for you effort. Amazing Video

  • @alexanderroos4391
    @alexanderroos4391 15 วันที่ผ่านมา

    Does NATS offer a way to order queues? E.g. start processing messages from queue B only after queue A is empty.

  • @marvinlnnx
    @marvinlnnx 8 หลายเดือนก่อน

    Hey, I'm curious if "bench" is working for microservices as well, or is it primarily designed for streams? If it does work for microservices too, I'd really appreciate it if you could create a video exploring this topic. Thanks!

    • @SynadiaCommunications
      @SynadiaCommunications  8 หลายเดือนก่อน

      Yup. Nats bench works for microservices as well, see the request/reply latency benchmarking section: docs.nats.io/using-nats/nats-tools/nats_cli/natsbench#run-a-request-reply-latency-test

  • @ucduy9951
    @ucduy9951 3 หลายเดือนก่อน

    BTW, Which app you use to draw diagram?