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.

Read article →

Using Typescript with NodeJS natively

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

Read article →

Load Balancing and Static File Serving with NGINX

NGINX is a popular web server often used to host Node.js applications in production. It provides features like load balancing, proxying, reverse proxy, and static file serving out of the box. Serving Web Apps with NGINX 🔗Today, we will perform a simple exercise using a basic JavaScript backend to demonstrate the load balancing capabilities of the NGINX web server. Alongside the backend server script, we’ll also host a single webpage on NGINX to showcase static file serving.

Read article →