up-examples
up-examples copied to clipboard
up deploys go project with nodejs 8.10 runtime
I created a main.go
file and ran up
. This prompted me to create an up.json
file and deploy the server I wrote.
This yielded:
{
"name": "recipe-api",
"profile": "default",
"regions": [
"us-east-1"
]
}
I checked the runtime for the lambda function it deployed and it was Node.js 8.10
When running in verbose mode I get: `DEBU inferred runtime type=go
It's not intuitive but that's actually correct. Binaries can run in the Node runtime fine since they have no dependencies on the runtime, so it's actually doing: tiny nodejs "shim" sends events to -> Up proxy which sends request to -> your app
and back.
I tested the latency of a Go-specific shim to skip that first step, but it was negligible, I think it was around 1ms or so at best.