News for hackers. Stuff that matters.
Re:Modern Node.js Patterns by hliyan on Sunday August 03, 2025 @10:43PM (#44781659)
There has to be something wrong with a tech stack (Node + Lambda) that adds 100ms latency for some requests, just to gain the capability [1] to send out HTTP requests within an environment that almost entirely communicates via HTTP requests.

[1] convenient capability - otherwise you'd use XMLHttpRequest

Re:Modern Node.js Patterns by bilalq on Monday August 04, 2025 @01:06AM (#44782267)
1. This is not 100ms latency for requests. It's 100ms latency for the init of a process that loads this code. And this was specifically in the context of a Lambda function that may only have 128MB RAM and like 0.25vCPU. A hello world app written in Java that has zero imports and just prints to stdout would have higher init latency than this.

2. You don't need to use axios. The main value was that it provides a unified API that could be used across runtimes and has many convenient abstractions. There were plenty of other lightweight HTTP libs that were more convenient than the stdlib 'http' module.

Re:Modern Node.js Patterns by PartiallyTyped on Monday August 04, 2025 @05:29AM (#44783580)
On init lambda funcs run a full core, but on invoke the 128MB run at 1/20 core.