Support for serverless environments?
See original GitHub issueHello,
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: https://github.com/segmentio/analytics-node/issues/121#issuecomment-382463201 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?
Issue Analytics
- State:
- Created 3 years ago
- Reactions:4
- Comments:19 (4 by maintainers)
Top Results From Across the Web
Serverless Computing – Amazon Web Services
Serverless applications start with AWS Lambda, an event-driven compute service natively integrated with over 200 AWS services and software as a service ......
Read more >AWS Lambda Functions - Serverless Framework
The Serverless Framework documentation for AWS Lambda, API Gateway, EventBridge, DynamoDB and much more.
Read more >What is serverless? - Red Hat
Serverless is a cloud-native development model that allows developers to build and run applications without having to manage servers.
Read more >Serverless Architecture: What It Is & How It Works | Datadog
One of the most popular serverless architectures is Function as a Service (FaaS), where developers write their application code as a set of...
Read more >What is Serverless Computing? - IBM
Today every leading cloud service provider offers a serverless platform including Amazon Web Services (AWS Lambda), Microsoft Azure (Azure Functions), ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@pbassut If you are still looking at confirmation, I just tested this on my end and the fix seems to be working just fine 👍
Yeah, sure. That’s good cause I’ve been testing on AWS Lambda and it seems to be working well too. But I was looking to have confirmation from someone else also using Lambda.
But we’ll make a release anyway.