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

Support for serverless environments? #245

@Blatty

Description

@Blatty

Hello,

First of all, thank you to the segment team for providing this library.

I'm currently trying to implement analytics-node in my serverless app (GraphQL + nowsh, now known as vercel.

I tried using a shorter flushInterval like mentioned in this comment: #121 (comment) but it looks like context.callbackWaitsForEmptyEventLoop needs to be set to true, however Vercel, under the hood, use context.callbackWaitsForEmptyEventLoop = false by default.

Is there any recommended guide to use this library in a serverless environment / is it supported?

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