Innovating for Performance: How our Infra Team Powers 100+ Million Downloads A Year (While Keeping our SaaS Reliable and Secure)
The Infra team at Node.js has open-sourced their Node.js Runtime and released an AI Copilot for Node, relying heavily on their infrastructure team.
The Infra team has made significant updates to their platform, including migrating from ECS to EKS and implementing GitOps for enhanced efficiency and reliability. [ more ]
How to Use Server-sent Events in Node.js - SitePoint
Server-sent events (SSE) allow a server to push data to the browser at any time without the need for constant refresh or polling mechanisms.
SSE is an efficient way to provide live data updates to clients on the web, enabling real-time information delivery such as news bulletins or stock prices. [ more ]
Latest Bun 1.1 version supports Windows 10 and is more compatible with Node.js.
Updates in Bun 1.1 include faster speeds, new features like HTTP2 client support, content-addressable cache, and cross-platform shell functionality. [ more ]
Should Node.js be built with ClangCL under Windows?
ClangCL compiler can provide more performant code in release mode compared to the Visual Studio compiler, as seen in Chrome, Firefox, and some game developers. [ more ]
NodeJS VS Python: Which Technology Is The Best Option For AI Development? - Springs
Python and NodeJS are popular for AI/ML; Python has a strong community for support and newer features, while NodeJS is efficient for architecture development. [ more ]
The Node.js Built-in Debugger is a free and effective tool for inspecting and debugging Node.js applications.
To use the Node.js Built-in Debugger, you need to run your Node.js application with the --inspect flag and connect to it with Chrome DevTools or the Node debugging client. [ more ]
Solved "Cannot find module 'fs/promises'" in Node.js
The error message "Cannot find module 'fs/promises'" can be ambiguous, particularly in relation to the filesystem (fs) module promises in more modern Node.js versions.
There are several causes for this error, including outdated Node.js versions, outdated npm packages, and incorrect import statements. [ more ]
Logging Made Easy: A Beginner's Guide to Winston in Node.js - SitePoint
Logging is crucial for debugging, monitoring, and auditing in application development.
Fundamental logging practices include appropriate log levels, consistency in formats, structured data logging, minimizing overhead, and securing sensitive information. [ more ]
Top 5 Node.js Features Every Developer Should Know
Node.js has several features that can enhance your overall development experience, including worker threads, the cluster module, built-in HTTP/2 support, streams API, and REPL.
Node.js is known for its single-threaded event loop, which was designed for I/O-bound tasks like web servers but has limitations such as blocking the loop with CPU-bound tasks and lack of true parallelism. [ more ]
GitHub - mswjs/msw: Seamless REST/GraphQL API mocking library for browser and Node.js.
1. mswjs/msw is a library for mocking REST and GraphQL APIs in both browser and Node.js environments.
2. The library provides a seamless experience for mocking API requests and responses, allowing developers to easily simulate different scenarios. [ more ]
Multithreading in Node.js with worker threads - LogRocket Blog
Node.js v10.5.0 introduced the worker_threads module, which allows for multithreading in Node.js.
JavaScript was initially single-threaded, but Node.js introduced asynchronous I/O to enable concurrency without the complexity of multithreading. [ more ]