Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

up deploys go project with nodejs 8.10 runtime #75

Open
codingdiaz opened this issue Aug 2, 2019 · 1 comment
Open

up deploys go project with nodejs 8.10 runtime #75

codingdiaz opened this issue Aug 2, 2019 · 1 comment

Comments

@codingdiaz
Copy link

codingdiaz commented Aug 2, 2019

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

@tj
Copy link
Member

tj commented Aug 2, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants