
Blogs | Shashank Shekhar
Introduction 🔗In this article we will discuss NodeJs process of optimize application by caching modules. We will also discuss how Class definitions are cached, but new instances are not and Singleton patterns allow caching class instances manually
Node.js optimizes performance by caching imported modules to prevent redundant execution. This means that when a module is required or imported multiple times, it is loaded and executed only once—subsequent imports simply reuse the cached version.
Hi There! This is going to be long article so I am not gonna waste much time and we will dive deep into it!.
What are we buidling 🔗We are building and simulating a task processing queue using message broker service called RabbitMQ. We will talk about Pub Sub architecture, message brokage and advance message protocol.
For the sake of simplicity have build a node monolith , but often the producer and consumers are build and deployed seperately as microservices.
Since v22.6.0, Node.js has experimental support for some TypeScript syntax via “type stripping.” You can write code that’s valid TypeScript directly in Node.js without needing to transpile it first.
Today, we will do a small demo and explain how “type stripping” works, allowing users to run .ts files directly with the Node.js command, without requiring a tsconfig file or build step. Scripts for demos are available at my Github Repo