←
Luciano Mammino 𝕏 Node.js Design Patterns35,605 posts
Luciano Mammino 𝕏 Node.js Design Patterns avatar

Luciano Mammino 𝕏 Node.js Design Patterns

@loige

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

◷ Joined April 2009▧ 2,998 Photos and videos
Luciano Mammino 𝕏 Node.js Design Patterns avatar
Luciano Mammino 𝕏 Node.js Design Patterns@loige·Nov 8

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.

Luciano Mammino 𝕏 Node.js Design Patterns avatar
Luciano Mammino 𝕏 Node.js Design Patterns@loige·Nov 8

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)

Post attachment
Luciano Mammino 𝕏 Node.js Design Patterns avatar
Luciano Mammino 𝕏 Node.js Design Patterns@loige·Nov 8

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 🧵

Luciano Mammino 𝕏 Node.js Design Patterns avatar
Luciano Mammino 𝕏 Node.js Design Patterns@loige·Oct 23

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! 🔬

Matteo Collina avatar
⟳ Luciano Mammino 𝕏 Node.js Design Patterns retweeted
Matteo Collina@matteocollina·Oct 20

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?

Post attachment
Luciano Mammino 𝕏 Node.js Design Patterns avatar
⟳ Luciano Mammino 𝕏 Node.js Design Patterns retweeted
Luciano Mammino 𝕏 Node.js Design Patterns@loige·Oct 20

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! 🚀 🧵

Post attachment
Luciano Mammino 𝕏 Node.js Design Patterns avatar
Luciano Mammino 𝕏 Node.js Design Patterns@loige·Oct 20

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? 🦀

Luciano Mammino 𝕏 Node.js Design Patterns avatar
Luciano Mammino 𝕏 Node.js Design Patterns@loige·Oct 20

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…