You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reacted by John L. Armstrong IV, Luiz Correia, Oscar Mora, Théo LUDWIG, no, Anton Frattaroli, Tushar Sharma, Kees Kluskens, Alessandro Dal Grande, Chris Gilardi and 145 more
Reacted by ES-Six, David Birks, Juan Carlos Blanco Delgado, Vojtěch Křižan, Ricky, Tyler Freeman, Jonathan Martineau, Roberto-Calderon, James Campbell, Vincent and 24 more
Maybe that way, the Node v18 will be done before past one year.
Reacted by Vinicius Lourenço, Matt Kane, ES-Six, 박천(Cheon Park), Jiahao, Vojtěch Křižan, Skplunkerin, Cheesy, Roman Makarov, Andrzej Kiełtyka and 15 more
Do tell Vercel, they may reconsider using AWS lambda images :)
Reacted by Jiahao, Skplunkerin, Ruslan Musaev, Anmol Mahatpurkar, Vojtěch Křižan, Michael Schaufelberger, Graham Campbell, Omer Elbaz and Khalil Mohammad Mirza
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.
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"
Reacted by Will Stone, Dan Rivett, Jason Papakostas, Andrzej Kiełtyka, Martin DONADIEU and Aaron Sterling
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.
Reacted by Sophie Cooper, Magnus Markling, Kyler Jensen, Jean-Philippe BOURGEON, Martin DONADIEU, David, Eric McCormick and Justin Collum
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
Reacted by Dan Rivett, Jason Papakostas, Vojtěch Křižan, Andrzej Kiełtyka, Omer Elbaz, Jean-Philippe BOURGEON, Vincent and David
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.
Reacted by Dan Rivett, Omer Elbaz, Alex, Paul Canning, Jayden Seric, Guillaume Humbert, Skplunkerin, Khalil Mohammad Mirza, Pouria, Cody Ebberson and 4 more
Reacted by Hiroyuki Matsuo, Jason Papakostas, Steven, Omer Elbaz, Martin DONADIEU, JL and ES-Six
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.
Reacted by Maxime Richard, Guillaume Humbert, Ricky, NicoVIII, deathemperor, Olzhas Alexandrov, Michal Šimon, Eric McCormick, Eric McCormick, Skplunkerin and 25 more
Reacted by Eric McCormick, Tony Stenberg, Sara Gerion, Martin DONADIEU, Michael Hays, R U, Momo Kornher, mark-studer, Juanchi Rios and Théo LUDWIG
@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.
Reacted by Jayden Seric, Kyler Jensen, Guillaume Humbert, Anurag Roy, Jason Papakostas, Thomas Lekanger, Pouria, Šarūnas Jončas and minas90
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!!!
Reacted by Adam Haglund, Anders Steiner, Jayden Seric and Muhammad Alfian Rasyidin
@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.
-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.
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.
Reacted by Paul Canning, AJ Stuyvenberg and Maxime David
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?
@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.
Reacted by Manuel, santiperone and Steven
Reacted by Jean-Philippe BOURGEON and Mario Bittencourt
@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:
@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?
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.
@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.
Activity
jlarmstrongiv commentedon Apr 19, 2022
luizcorreia commentedon Apr 19, 2022
Maybe that way, the Node v18 will be done before past one year.
mikepage commentedon Apr 19, 2022
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 :)
chenrui333 commentedon Apr 19, 2022
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.
davecarlson commentedon Apr 20, 2022
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"
vith commentedon Apr 20, 2022
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.
davecarlson commentedon Apr 20, 2022
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
dl748 commentedon May 2, 2022
Should be noted as well, that they will be transitioning to Javascript SDK V3 as well for the default SDK.
adcreare commentedon May 6, 2022
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.
paul-uz commentedon May 9, 2022
@adcreare I mean, it's not like Amazon is a multi-billion dollar company.... oh wait
jtuliani commentedon May 9, 2022
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.
faradaytrs commentedon May 10, 2022
@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.
GrahamCampbell commentedon May 10, 2022
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!!!
dl748 commentedon May 10, 2022
This is "close" to what I'd like. i'm thinking more like
nodejs18.x-experimentalthat 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": truewhen sending a runtime of "*-experimental", where the usage agreement is "use at your own risk".... then when GA is ready or close, they make anodejs18.xThis 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.
barneyparker commentedon May 10, 2022
-experimentalfeels 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: trueis 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.76 remaining items
willfarrell commentedon Feb 9, 2023
This was in a newsletter from Node Weekly I received today:
Seems others have noticed too.
paul-uz commentedon Feb 9, 2023
How embarrassing.
o-alexandrov commentedon Feb 24, 2023
This is slightly related to performance questions:
Maybe, AWS would kindly consider to provide us with managed by AWS Bun runtime.
bicatu commentedon Mar 21, 2023
any news regarding this issue? is there a ticket we can subscribe to be notified of this progress?
o-alexandrov commentedon Mar 21, 2023
@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
Openstate and has less probability of being postponed.ffxsam commentedon Mar 21, 2023
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
paul-uz commentedon Mar 21, 2023
@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 :/
ffxsam commentedon Mar 21, 2023
@paul-uz What, specifically, are you looking for?
paul-uz commentedon Mar 21, 2023
@ffxsam how to configure esbuild to compile TS and do tree-shaking (and minification).
ffxsam commentedon Mar 21, 2023
@paul-uz Tree-shaking is automatic in esbuild, as far as I know. As a test, just create an
index.tsfile and add a package (likedate-fns). Import a function fromdate-fns, use it in some way, then do:Or
--format=esmdepending on where you're deploying.paul-uz commentedon Mar 21, 2023
@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?
paul-uz commentedon Mar 21, 2023
How is that single JS then referenced in my actual function? Does esbuild handle that as well?
simlu commentedon Mar 21, 2023
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.
paul-uz commentedon Mar 21, 2023
@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.
koshic commentedon Mar 21, 2023
@paul-uz plz read https://esbuild.github.io/api/#tree-shaking and stop posting irrelevant comments here )