Build an AWS Lambda Serverless function with PyMongo & MongoDB

แชร์
ฝัง
  • เผยแพร่เมื่อ 3 ม.ค. 2025

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

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

    ✅ Sign-up for a free cluster at → mdb.link/free--ZSKyLspT3Q
    ✅ Written article with code samples → mdb.link/article--ZSKyLspT3Q

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

    seems too easy the way she is doing

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

    Great video!

  • @mohammedregragui9631
    @mohammedregragui9631 10 หลายเดือนก่อน +1

    the best tutorial, thank you

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

    Wow! This is exactly the tutorial I was looking for, thank you! Wonderfully made.

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

      Glad it was helpful!

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

      you took the words out of my mouth!

  • @EasiideskTSE
    @EasiideskTSE 4 หลายเดือนก่อน +1

    for every request will it be creating new connections? How can we efficiently handle connections?

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

      Thank you for your question! Since we are incorporating our MongoClient outside of our `lambda_handler` to establish our connection, Lambda will reuse this instance. For a more in-depth and step-by-step view of this tutorial, please check out our written article with code examples here: mdb.link/article--ZSKyLspT3Q

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

    Thank you for the tutorial! Could you explain why it takes so long to fetch data? Half a second is too long for my use case, I would love to hear a solution for that.

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

      You're welcome! Yeah, there can actually be a number of reasons for this...the ones off the top of my head for this specific tutorial are: starting up the connection after not using it for a while (a cold start), making sure your MongoDB cluster is in the same region as your lambda function, and personal code optimization (for the sake of the tutorial I didn't optimize my code as well as I should have, but I wanted to ensure watchers understand what's happening step by step).
      Hopefully some of these reasons can help you out with your use case. :)

  • @alhassanmumin1935
    @alhassanmumin1935 9 หลายเดือนก่อน +1

    I love this

  • @zarlo12195
    @zarlo12195 26 วันที่ผ่านมา +1

    Security open? :/