Lambda + SQS Users Should Know About This

แชร์
ฝัง
  • เผยแพร่เมื่อ 30 พ.ย. 2024

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

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

    Want to get more hands on with Lambda? Check out my course, AWS Lambda - A Practical Guide - www.udemy.com/course/aws-lambda-a-practical-guide/?referralCode=F6D1A50467E579C65372

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

    I had this issue and I didn't even know, now it's fixed thanks to you. Great content!!

  • @shaikhalamin23
    @shaikhalamin23 23 ชั่วโมงที่ผ่านมา

    Really good information. Thanks for sharing

  • @nathanbenton2051
    @nathanbenton2051 ปีที่แล้ว +10

    ..."what the hell is happening here?" 😆literally my mindset everyday in dev

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

      There is rarely a day where I don't mutter this to myself haha.

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

    Great info on both handling of lambda concurrency and error handling…Thanks for sharing !

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

    Love this. I have learned so much about AWS thank to you, thank you so much man !!!

  • @kevinclinthorne
    @kevinclinthorne ปีที่แล้ว +4

    From the title of the video I could tell exactly what the problem was going to be. This is one of the weird things about scaling with SQS that does catch a lot of people out and it's not well documented at all. Really easy to fix once you understand what's going on though

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

      It definitely is a less known quirk of SQS and Lambda scaling. I’m glad I’m not the only one that thinks the documentation is lacking :p

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

    That was a good find. Amazing solution by Lambda on this. Thanks for sharing mate. Thumbs Up!!

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

    Excelent video!!! very helpfully

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

    That's really interesting. My big takeaway is partial batch responses, I forgot about those, but it really seems like everyone should be using them

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

      Absolutely! I never realized this could become a problem until it did :P

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

    That is a very good feature it is used to apply back pressure, it limits function invocation automatically, I was looking for this

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

    Thank you!

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

    Can you provide an example of the partial batch error in javascript?

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

    Great video. For a moment I thought you were about to talk about the fact your SQS queue must have VisibleMessages available in order to the Lambda to decide scaling up. I have a Lambda with a weird behaviour in which it NEVER fails the execution (by design) but I still don’t see it scaling. My SQS queue is always showing VisibleMessages as 0 and I don’t know why that happen. Not sure if you have seen anything like that.

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

    I just switch to EventBridge & EventBridge Pipes in my current project, I am surprised by its capabilities and ease of use

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

    great lectures, great teacher.

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

    That’s a helpful tip. Thanks.

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

    Another weird thing: I wasted 16 hours. Last week my prod went down and I found out the ssl listener has been removed from CLB. I added them again and five minutes later same thing. After a lot of digging found out there is no more support for CLB anymore, the migrate button didn’t do anything and AWS has never communicated this with us. Super Frustrating!!

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

    In the end when you mentioned people were removing messages from sqs which are successfully processed.
    When i was working with sqs as lambda trigger, i saw that all the sqs messages received by lambda were automatically deleted irrespective of they get processed by lambd aor not.
    Same thing i saw on many stackover flow answers

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

      The issue is when you are using batch sqs processing, you receive many messages at once per invocation. If you successfully process say 9 out of the 10, you need to ensure the 9 get deleted and the one failure remains.

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

      @@BeABetterDev okay

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

    If you get 10 messages sent by sqs and successfully process 8 of them, will you return a list of those 2 ids in the lambda response? And maybe you have a sample of that lambda? Thank you.

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

    Really cool thx

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

    @BeABetterDev, does this apply for batch size of 1?

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

    Hi. So you mean when throw error with try catch. Or just simply throw “something with no catch” ? Is it considered error when return statusCode:400 ? I just try to experiment lambda/sns/cloudwatch week ago. 😂

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

      no you have to return something like this
      {
      batchItemFailures: [
      {
      itemIdentifier: messageId
      },
      ]
      }
      and make sure you configure event source mapping and add your sqs uuid to it

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

    Is it possible for you show the demo becuase many of them can not visualize the tech infprmation ❤

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

    learned a lot

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

    This is gold

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

    Was fixed in December 2023 by setting max concurrency param

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

    Any chance you could update your Udemy course with this issue and its fix ? It could help a lot of students. Thanks!

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

      check the docs, everyone checks the docs they walk you through the steps

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

    🙏👍