Tag aws-lambda

 Note

Had anyone ever seen an error like this with #AWSLambda?

It's a Node 18 app that calls out to Renovate but fails due to some deep intenals in Node when doing some performance checking?

{
    "errorType": "TypeError",
    "errorMessage": "performance.markResourceTiming is not a function",
    "stack": [
        "TypeError: performance.markResourceTiming is not a function",
        "    at markResourceTiming (node:internal/deps/undici/undici:10636:21)",
        "    at finalizeAndReportTiming (node:internal/deps/undici/undici:10632:7)",
        "    at Object.handleFetchDone [as processResponseEndOfBody] (node:internal/deps/undici/undici:10579:45)",
        "    at node:internal/deps/undici/undici:10895:44",
        "    at node:internal/process/task_queues:140:7",
        "    at AsyncResource.runInAsyncScope (node:async_hooks:204:9)",
        "    at AsyncResource.runMicrotask (node:internal/process/task_queues:137:8)",
        "    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)"
    ]
}

Very odd, and this Go issue is the only thing I could find that may relate 🤔

 Bookmark

Bookmarked Optimizing AWS Lambda function performance for Java | Amazon Web Services
Post details
This post is written by Mark Sailes, Senior Specialist Solutions Architect. This blog post shows how to optimize the performance of AWS Lambda functions written in Java, without altering any of the function code. It shows how Java virtual machine (JVM) settings affect the startup time and performance. You also learn how you can benchmark […]

Recommended read: Optimizing AWS Lambda function performance for Java | Amazon Web Services https://aws.amazon.com/blogs/compute/optimizing-aws-lambda-function-performance-for-java/

 Reply

An ex colleague of mine wrote this pretty great article about cold start reduction for Java https://www.capitalone.com/tech/cloud/aws-lambda-java-tutorial-reduce-cold-starts/

 Bookmark

An interesting approach - but I wonder why you'd implement like so (requiring SSH usage) instead of the Systems Manager's run-command https://docs.aws.amazon.com/systems-manager/latest/userguide/walkthrough-cli.html ?

Recommended read: SSH to EC2 instances via AWS Lambda https://www.transposit.com/blog/2019.12.18-using-lambda-as-an-ssh-proxy/

 Bookmark

This is quite an interesting little gotcha that many may not know (for instance I did not) about a 75GB limit of storage of Lambdas.

Recommended read: The Dark Side of AWS Lambda https://medium.com/fluidity/the-dark-side-of-aws-lambda-5c9f620b7dd2