Skip to content
This repository was archived by the owner on Dec 9, 2024. It is now read-only.
This repository was archived by the owner on Dec 9, 2024. It is now read-only.

Batch mutations seem to create separate AWS Lambda invocations #397

Open
@prm-dan

Description

@prm-dan

Hi! I have an Apollo server running using Serverless on AWS Lambda. I'm sending a bunch of mutations in a single batch to the Lambda. I would expect only one Lambda invocation for the whole batch. I'm seeing >=1 Lambda invocation per mutation in the batch. Splitting each mutation into a separate Lambda will be expensive and less efficient.

mutation {
  create0: createEntity(input: { ... }) { ... },
  create1: createEntity(input: { ... }) { ... },
  ...
  createN: createEntity(input: { ... }) { ... },
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions