Uploaded image for project: 'Couchbase node.js Client Library'
  1. Couchbase node.js Client Library
  2. JSCBC-1109

prebuilt binaries are very large which prevents using the SDK in a lambda function

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Test Blocker
    • 4.2.5
    • 4.1.3
    • library
    • None
    • 1

    Description

      When tying to create a lambda function using the SDK I get an error

      An error occurred (InvalidParameterValueException) when calling the CreateFunction operation: Unzipped size must be smaller than 262144000 bytes 

      This is because the size of the unzipped package is 267786538 bytes

      The zip file just contains the node_modules directory after running npm i couchbase as well as a small js file

      The largest part of the ./node_modules/couchbase directory is the couchbase_impl.node binary which is 150MB. When I run strip --strip-debug on this binary it gets reduced to 17MB. I'm not sure why debug symbols are included because it looks like it is getting compiled in release mode. Also, is it expected that debug symbols are 130MB?

      The other large part of ./node_modules/couchbase is the deps directory which is 116MB but I'm not sure anything can be done about that because those files are needed if the SDK needs to build from source.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            jared.casey Jared Casey
            jake.rawsthorne Jake Rawsthorne
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty