Skip to content

Webpack compile lambda's sequentially #536

Description

@marcelpanse

This is a (Bug Report / Feature Proposal)

Description

Deploying an individual lambda function in our project (including compiling/packaging/deploying) takes only 4-5seconds. We have around 40+ lamda's in our project. When we do a full serverless deploy of all function, serverless will launch the webpack compiler for all 40 functions at the same time. This results in 100% CPU usage for 13 minutes because all the threads cannabalize on each other (also my computer because unbearable slow because of the CPU hog).
If all 40 functions would be compiled sequentially it should take around 5*40 = 2,5 to 3 minutes to compile everything (10 times faster!).
What would really help is a simple config flag that launches all compile threads sequentially instead.

  • If there is additional config how would it look
    custom:
    webpack:
    webpackConfig: 'webpack.config.js'
    sequentially: true

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions