WebSockets under the hood with Node.js

WebSockets is a network communication protocol that enables two-way client-server communication. WebSockets are often used for applications that require instantaneous updates, using a persistent duplex channel atop HTTP to support real-time interactions without constant connection negotiation. Server push is one of the many popular use cases for WebSockets. This article takes a code-first look at…

Read More

Intro to Node’s built-in SQLite module

Node 22.5.0 now bundles SQLite, a lightweight, in-process relational database that requires no additional infrastructure but packs considerable capability. Let’s get to know this handy new built-in feature in Node.js. What is SQLite? Relational databases are a key component of the software landscape. SQLite is a simple but versatile implementation with a variety of use…

Read More

Node.js adds built-in API for on-disk caching

Node.js 22.8.0, the latest release of the event-driven JavaScript runtime, adds a JavaScript API to enable on-disk caching of all modules loaded after the API is called, presenting a caching option for code. The API is called module.enable.CompileCache(). It overrides the NODE_COMPILE_CACHE environment variable, which only end users could use to enable on-disk caching. The…

Read More