
🎉 Big news and a gift for you 🎁 Keep reading🧵👇

#AWS #Serverless Hero & MVP. Senior Architect @fourTheorem, author of 📕 nodejsdp.link & ✉️ fstack.link #Nodejs, #JavaScript, #Rust 🦀 & #Cloud ☁️

🎉 Big news and a gift for you 🎁 Keep reading🧵👇



Before you upgrade: req.headers now has a null prototype, so req.headers.hasOwnProperty() throws. Use Object.hasOwn(). And the default heap goes from 2 GB to 4 GB on an 8 GB box. Multi-process setups should set --max-old-space-size explicitly.

node:net finally gets a promises API, and net.Server is async-iterable. A TCP server can now be a for await loop. (Just be careful not to await within the loop otherwise you can only process a connection at a time)

[129.99, 49.99, 349.95].reduce((a, b) => a + b) // 529.9300000000001 Math.sumPrecise([129.99, 49.99, 349.95]) // 529.93 It rounds once at the end, instead of after every addition.

Iterator.zip() and Iterator.zipKeyed() walk several iterators side by side, lazily. They even work on infinite generators, with no intermediate arrays! Well, yes, that's the point of iterators, really... 🙃

Node.js 27 just shipped its first build. The version is v27.0.0-alpha.0.0.0. Yes, an Alpha. Yes, an odd number that will become LTS. Here's what's in it and what to check before you upgrade 🧵

🎙️ Episode #155 of our #podcast is here! Enjoy and, as always, give us some feedback ❤️ awsbites.com/155-how-we-made…

We might have been slow releasing a new AWS Bites episode, but at least our containers aren't! 🐌➡️🚀 Eoin and I explain the results, trade-offs, and how you can try this yourself.

The secret weapon: SOCI (Seekable OCI). Instead of downloading the entire container image before starting, it loads files on demand. We also tested gzip vs zstd, ARM64 vs x86, Fargate vs EC2, and more. All benchmarks are open source! 🔬

We ran 1,320 #AWS #container startup tests. The result? Up to 10× faster startup on #Fargate. 🤯 No application code changes. No rewrite in #Rust. 🦀 Just some clever container optimizations. Here's what we found 🧵

I didn't pass the Anthropic Cyber Verification Program because I use the personal account sponsored by Anthropic. Note: Node.js does not have a Claude company account. At this point, using top AI models for security is becoming a matter for the few elected. How are we supposed to keep Node.js and other critical infrastructure safe?

Did you know AWS Lambda's Rust runtime has middleware built in? 🦀 It's powered by Tower, so you can handle tracing, rate limiting, errors and headers without cluttering your business logic. That's Chapter 10 of Crafting Lambda Functions in Rust! 🚀 🧵

Already own the book? The updated edition is ready in your Gumroad library. Curious about Rust on Lambda? Book info + a discount: rust-lambda.com Which addition are you most excited about? 🦀

New cover reveal! 🎨🏔️ Our mascot made it to the mountaintop. We're at 10/11 chapters + 4 appendices. Nearly there! All the release details: news.rust-lambda.com/p/new-b…