avatar

PrintF/ScanF

Node.js Module Caching

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.

Task processing queue with RabbitMQ

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.