Skip to content

Docs (README) should warn customers about the implications of requiring the all-in-one module #2102

@jasonpolites

Description

@jasonpolites

On Cloud Functions, require("google-cloud") will cause the smallest (default) function shape to run out of memory, and it's also very heavy-weight so affects cold-start time fairly dramatically.

The preferred approach for Cloud Functions is to only require the specific submodule you need. Can we add relevant warnings to the README (and anywhere else for that matter) that "require("google-cloud")" will be slower and take more memory? (and that they should use the submodule variant)

Or perhaps only every recommend the submodule, then have a separate section about the all-in-one version with the appropriate caveats

Metadata

Metadata

Labels

priority: p1Important issue which blocks shipping the next release. Will be fixed prior to next release.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions