Troubleshooting AWS Lambda Timeouts with ManagedRuntime in TypeScript

I use effect in aws lambda

I created ManagedRuntime outside of handler function that gets invoked by AWS.

const live = Layer.mergeAll(myLayer1, myLayer2, ...);
ManagedRuntime.make(live)


Sometimes my lambda hangs and I get timeout (after 15 seconds). I don't have ideas why it happens and how to fix that.

Is there anyone who uses effects in aws lambda? what's your approach to run effects in AWS lambda handlers?
Was this page helpful?