Uploaded image for project: 'Drivers'
  1. Drivers
  2. DRIVERS-2018

Language specific examples for AWS Lambda

    • Needed
    • Hide

      Write language specific versions of the existing Javascript example for AWS Lambda and test that the examples work.
      See the relevant scope section for details. 

      Show
      Write language specific versions of the existing Javascript example for AWS Lambda and test that the examples work. See the relevant scope section for details. 
    • 100
    • $i18n.getText("admin.common.words.hide")
      Key Status/Resolution FixVersion
      PYTHON-3097 Fixed 4.2
      CDRIVER-4324 Won't Do
      CXX-2481 Won't Do
      CSHARP-4127 Fixed 2.17.0
      GODRIVER-2368 Done 1.12.0, 1.12.0-alpha1
      NODE-4160 Fixed 4.10.0
      MOTOR-923 Done
      PHPLIB-833 Won't Do
      RUBY-2945 Fixed 2.18.0
      RUST-1253 Fixed 2.4.0
      SWIFT-1536 Fixed 1.4.0
      JAVA-4474 Done
      $i18n.getText("admin.common.words.show")
      #scriptField, #scriptField *{ border: 1px solid black; } #scriptField{ border-collapse: collapse; } #scriptField td { text-align: center; /* Center-align text in table cells */ } #scriptField td.key { text-align: left; /* Left-align text in the Key column */ } #scriptField a { text-decoration: none; /* Remove underlines from links */ border: none; /* Remove border from links */ } /* Add green background color to cells with FixVersion */ #scriptField td.hasFixVersion { background-color: #00FF00; /* Green color code */ } /* Center-align the first row headers */ #scriptField th { text-align: center; } Key Status/Resolution FixVersion PYTHON-3097 Fixed 4.2 CDRIVER-4324 Won't Do CXX-2481 Won't Do CSHARP-4127 Fixed 2.17.0 GODRIVER-2368 Done 1.12.0, 1.12.0-alpha1 NODE-4160 Fixed 4.10.0 MOTOR-923 Done PHPLIB-833 Won't Do RUBY-2945 Fixed 2.18.0 RUST-1253 Fixed 2.4.0 SWIFT-1536 Fixed 1.4.0 JAVA-4474 Done

      We field a lot of complaints about the behavior of drivers when using AWS Lambda. Lambda is a stateless function as a service provider. Drivers maintain a ton of state. A Lambda application has to be written a specific way to ensure an instance of MongoClient is reused on each invocation of a lambda function. Happily, our docs team wrote a guide:

      https://docs.atlas.mongodb.com/best-practices-connecting-from-aws-lambda/

      Sadly the guide only provides Javascript examples. It also only covers AWS Lambda, not Azure Functions, which are getting popular for .NET developers and are likely to get popular for other languages.

      This ticket proposes writing language specific versions of the existing Javascript example for AWS Lambda and test that the examples work.

      There will be a dependent ticket in the DOCS project to add these new examples to the existing docs.

            Assignee:
            Unassigned Unassigned
            Reporter:
            bernie@mongodb.com Bernie Hackett
            Bernie Hackett Bernie Hackett
            Rachelle Palmer Rachelle Palmer
            Martin Bajana Martin Bajana
            Votes:
            1 Vote for this issue
            Watchers:
            17 Start watching this issue

              Created:
              Updated:
              Resolved: