Skip to content

Node v18 Released #47

Closed
Closed

Description

@chenrui333

Even though we are still waiting for node v16 base image, this is the issue tracker for node v18 base image

https://nodejs.org/en/blog/announcements/v18-release-announce/

Activity

  1. jlarmstrongiv commented on Apr 19, 2022

    @jlarmstrongiv
  2. luizcorreia commented on Apr 19, 2022

    @luizcorreia

    Maybe that way, the Node v18 will be done before past one year.

  3. mikepage commented on Apr 19, 2022

    @mikepage

    Best thing you could do to enjoy Node v18 like-features is move to Netlify. They released Edge functions with Deno deploy: https://www.netlify.com/blog/announcing-serverless-compute-with-edge-functions

    Do tell Vercel, they may reconsider using AWS lambda images :)

  4. chenrui333 commented on Apr 19, 2022

    @chenrui333
    Author

    I honestly don't mind receiving flood of email notifications, since we really need to get more ppl to pressure AWS to stay on top of this NodeJS runtime update game.

  5. davecarlson commented on Apr 20, 2022

    @davecarlson

    Maybe that way, the Node v18 will be done before past one year.

    Honestly, having a 6 month bake (releasing the april LTS release in around October for lambda) would be a good compromise. gives enough time for tests and means we're only "one version behind"

  6. vith commented on Apr 20, 2022

    @vith

    Honestly, having a 6 month bake (releasing the april LTS release in around October for lambda) would be a good compromise. gives enough time for tests and means we're only "one version behind"

    Isn't that what the 6 months between v18 release on 2022-04-19 and v18 becoming LTS on 2022-10-25 is for?

    Amazon can start making v18 images available now if they want to have 6 months of testing before offering v18 as LTS.

  7. davecarlson commented on Apr 20, 2022

    @davecarlson

    Honestly, having a 6 month bake (releasing the april LTS release in around October for lambda) would be a good compromise. gives enough time for tests and means we're only "one version behind"

    Isn't that what the 6 months between v18 release on 2022-04-19 and v18 becoming LTS on 2022-10-25 is for?

    Amazon can start making v18 images available now if they want to have 6 months of testing before offering v18 as LTS.

    Yes, that's exactly my point - AWS just also use that same bake time to prepare, then launch the node version as soon as it becomes active LTS

  8. dl748 commented on May 2, 2022

    @dl748

    Should be noted as well, that they will be transitioning to Javascript SDK V3 as well for the default SDK.

  9. adcreare commented on May 6, 2022

    @adcreare

    Like many others I agree with the sentiments, AWS needs to get better on this.
    I suggest everyone bug their account managers, technical account managers and log support tickets if you haven’t already.

    I went back and dug out the release history of lambda back to node 8. It is not a pretty sight.

    The current delay is second only to the delay with the node 10 release, that took until May 13. After Node 10 things got better - Node 12 dropped very promptly, 14 it started to drift back out and with 16 we’re back to at least May.

    Interesting to note the other two major cloud providers, ie Google and Azure, did manage to get 16 out in a timely manner.

    Node 16: 
    	Node LTS: 2021-10-26
    	AWS Lambda Release:  ???
    	Google Cloud Functions release: 2021-11-17
    	Azure  Functions release: 2021-11-22
    Node 14: 
    	Node LTS: 2020-10-20
    	AWS Lambda Release: 2021-02-03
    Node 12: 
    	Node LTS: 2019-10-22 
    	AWS Lambda Release: 2019-11-18
    Node 10:
    	Node LTS: 2018-10-30
    	AWS Lambda Release: 2019-05-13
    Node 8:
    	Node LTS: 2017-10-31
    	AWS Lambda Release: 2018-04-02
    
  10. paul-uz commented on May 9, 2022

    @paul-uz

    @adcreare I mean, it's not like Amazon is a multi-billion dollar company.... oh wait

  11. jtuliani commented on May 9, 2022

    @jtuliani
    Contributor

    Thanks all for the keen interest in seeing Node releases land promptly in Lambda.

    Regarding Node releases in general, we're tracking the Active LTS release dates in October, not the 'Current' release dates in April. This is because, as stated at https://nodejs.org/en/about/releases/, "Production applications should only use Active LTS or Maintenance LTS releases".

    As @adcreare pointed out above, there have been delays between Active LTS and our corresponding GA releases, not least for Node 16 (see #14 for latest status). While I can't give an ETA for Node 18 yet, we do hear your feedback and this is something we're actively working to improve.

  12. faradaytrs commented on May 10, 2022

    @faradaytrs

    @jtuliani Well you could add it as beta status or something, actually node 12 is also not usable in production because it's not supported anymore, but you still have this runtime supported. I think it's nothing bad about thinking of new releases in advance. "Current" version is stable enough for some simple applications. It's a good idea to release it right when it hits lts status.
    Having this runtime for lambda doesn't equal using it in production. We might use it in testing instances.

  13. GrahamCampbell commented on May 10, 2022

    @GrahamCampbell

    Regarding Node releases in general, we're tracking the Active LTS release dates in October, not the 'Current' release dates in April. This is because, as stated at https://nodejs.org/en/about/releases/, "Production applications should only use Active LTS or Maintenance LTS releases".

    Then why is your node 16 image that is just released based on node 16.4, which by your version definition, should not be used in production, because it was released multiple months before the first 16.x LTS version!!!

  14. dl748 commented on May 10, 2022

    @dl748

    @jtuliani Well you could add it as beta status or something

    This is "close" to what I'd like. i'm thinking more like nodejs18.x-experimental that can only to assigned through the API/CLI and not through the console (currently how 16 is working now). Where, if they are are worried about support, have a flag that needs to be sent via API, "agree_experimental": true when sending a runtime of "*-experimental", where the usage agreement is "use at your own risk".... then when GA is ready or close, they make a nodejs18.x

    This would allow us to deploy an experimental version and allow us to fix bugs ahead of the GA releases.

    If someone wants to use this for production purposes, that's their issue then as they agreed to the terms.

  15. barneyparker commented on May 10, 2022

    @barneyparker

    -experimental feels problematic in that at some point when the runtime goes GA, AWS need to modify a whole bunch of lambda configs to remove the suffix. Published version configurations would then be modified, which should never happen.

    That said, agree_experimental: true is a reasonable thing for non-GA runtimes since that would be required for the API to not fail the call, but would leave things in the correct state at GA - the agreement doesn't need to be stored, its implied by the fact that the API accepted the request.

  16. 76 remaining items

  17. willfarrell commented on Feb 9, 2023

    @willfarrell

    This was in a newsletter from Node Weekly I received today:

    Lambda Cold Starts is a neat page giving a live demonstration of how quickly different AWS Lambda serverless runtimes take to start. Given Node's mature status on Lambda, it does surprisingly poorly?

    Seems others have noticed too.

  18. paul-uz commented on Feb 9, 2023

    @paul-uz

    This was in a newsletter from Node Weekly I received today:

    Lambda Cold Starts is a neat page giving a live demonstration of how quickly different AWS Lambda serverless runtimes take to start. Given Node's mature status on Lambda, it does surprisingly poorly?

    Seems others have noticed too.

    How embarrassing.

  19. o-alexandrov commented on Feb 24, 2023

    @o-alexandrov

    This is slightly related to performance questions:

    Maybe, AWS would kindly consider to provide us with managed by AWS Bun runtime.

  20. bicatu commented on Mar 21, 2023

    @bicatu

    any news regarding this issue? is there a ticket we can subscribe to be notified of this progress?

  21. o-alexandrov commented on Mar 21, 2023

    @o-alexandrov

    @chenrui333 @JacksonGariety We're aware of the reports of longer cold starts on Node 18 and we're investigating the issue. We'll report back once those investigations are complete.

    @bicatu this ticket is closed, Node.js 18 is available for all Lambda, including Lambda@Edge (support added in January 2023 if I'm not mistaken), some of us just shamelessly pinged AWS here 😅 having an opportunity to be heard

    I just created a separate ticket #83 regarding cold starts, so it's in Open state and has less probability of being postponed.

  22. ffxsam commented on Mar 21, 2023

    @ffxsam

    There's still the issue of performance when using the built-in runtime's SDK: https://dev.to/aws-builders/benchmarking-the-aws-sdk-2pd4

  23. paul-uz commented on Mar 21, 2023

    @paul-uz

    @ffxsam funnily enough, I read that same article last night.

    Anyone here got a good example/tutorial on using esbuild with Typescript and tree shaking? I can't seem to find anything decent online :/

  24. ffxsam commented on Mar 21, 2023

    @ffxsam

    @paul-uz What, specifically, are you looking for?

  25. paul-uz commented on Mar 21, 2023

    @paul-uz

    @ffxsam how to configure esbuild to compile TS and do tree-shaking (and minification).

  26. ffxsam commented on Mar 21, 2023

    @ffxsam

    @paul-uz Tree-shaking is automatic in esbuild, as far as I know. As a test, just create an index.ts file and add a package (like date-fns). Import a function from date-fns, use it in some way, then do:

    $ esbuild index.ts --bundle --format=cjs --minify --outfile=min.js

    Or --format=esm depending on where you're deploying.

  27. paul-uz commented on Mar 21, 2023

    @paul-uz

    @ffxsam oh sweet. TBH I've simply not yet tried it, as we currently just use TS to compile the JS files, and bundle all the production NPM dependencies in a ZIP.

    So, I can use esbuild to compile the TS into JS, at the same time, tree-shaking and minifying everything? So in theory I would end up with a JS file and a trimmed down node_modules folder? Or does esbuild create something else that gets imported?

  28. paul-uz commented on Mar 21, 2023

    @paul-uz

    How is that single JS then referenced in my actual function? Does esbuild handle that as well?

  29. simlu commented on Mar 21, 2023

    @simlu

    I guess this thread has now completely derailed, so I'm going to unsubscribe. However, relevant to the recent discussion, please take a look at "@vercel/ncc". We've been using it for hundreds of production lambda functions (and billions of executions) to bring down cold start / package size. It might take a bit of tinkering to get to work (depending on your dependencies - really helps if you have tests you can run against the compiled code), but the impact on cold start times is fantastic.

  30. paul-uz commented on Mar 21, 2023

    @paul-uz

    @ffxsam I gave esbuild a quick test, and it seems to be working, mostly. I don't think tree-shaking is working by default though, as an included package I wrote is having all its functions bundled, not just the one being used in my main file.

  31. koshic commented on Mar 21, 2023

    @koshic

    @paul-uz plz read https://esbuild.github.io/api/#tree-shaking and stop posting irrelevant comments here )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions