Tag

nodejs

25 posts

WebSockets with Socket.io in Node.js

WebSockets with Socket.io in Node.js

WebSocket vs HTTP Traditional HTTP follows a request/response model — the client…

Testing Node.js — Unit, Integration, and E2E

Testing Node.js — Unit, Integration, and E2E

Testing Strategy A solid testing strategy follows the testing pyramid — many…

Redis — Caching, Sessions, Pub/Sub in Node.js

Redis — Caching, Sessions, Pub/Sub in Node.js

Why Redis for Node.js Redis is an in-memory data store that serves as a cache…

Database Integration — PostgreSQL with Node.js

Database Integration — PostgreSQL with Node.js

Choosing Your PostgreSQL Client Node.js has three main approaches to working…

Performance Optimization and Profiling in Node.js

Performance Optimization and Profiling in Node.js

Profiling First, Optimize Second Never optimize blindly. Always profile to find…

Node.js Architecture — Event Loop Deep Dive

Node.js Architecture — Event Loop Deep Dive

Why the Event Loop Matters Node.js runs JavaScript on a single thread, yet…

MongoDB with Mongoose — Patterns and Pitfalls

MongoDB with Mongoose — Patterns and Pitfalls

Schema Design Philosophy MongoDB schema design is fundamentally different from…

Message Queues with RabbitMQ and SQS in Node.js

Message Queues with RabbitMQ and SQS in Node.js

Why Message Queues Message queues decouple producers from consumers, enabling…

File Uploads and S3 Integration in Node.js

File Uploads and S3 Integration in Node.js

File Upload Architecture There are two main patterns for handling file uploads…

Error Handling and Logging in Production Node.js

Error Handling and Logging in Production Node.js

Error Handling Strategy Production error handling has two goals: give clients…

Docker and Containerization for Node.js

Docker and Containerization for Node.js

Why Docker for Node.js Docker eliminates “works on my machine” problems by…

Deploying Node.js to AWS

Deploying Node.js to AWS

Choosing Your Deployment Strategy Service Best For Scaling Cold Start ECS…

Building REST APIs with Express and Nest.js

Building REST APIs with Express and Nest.js

Two Paths to Building APIs Express.js and Nest.js represent two philosophies for…

Real Project — Build a Production Node.js API

Real Project — Build a Production Node.js API

What We’re Building A production-ready Task Management API that demonstrates…

Authentication — JWT, Sessions, OAuth in Node.js

Authentication — JWT, Sessions, OAuth in Node.js

Authentication Strategies Compared There are three primary authentication…

How to Implement Exponential Backoff in Rabbitmq Using AMQP in Node.js

How to Implement Exponential Backoff in Rabbitmq Using AMQP in Node.js

Exponential Backoff in Rabbitmq Please make sure to read first, why we need the…

How to Download multiple Youtube Videos using Nodejs and Show a Progress Bar

How to Download multiple Youtube Videos using Nodejs and Show a Progress Bar

Introduction I was trying to download some youtube videos for my kids. As I have…

Moment.js - How to perform date relatedd arithmetic in javascript/NodeJs

Moment.js - How to perform date relatedd arithmetic in javascript/NodeJs

Introduction In your backend and frontend projects, you always need to deal with…

Nodejs - Json object schema validation with Joi

Nodejs - Json object schema validation with Joi

Introduction In this post, I will show how to validate your json schema…

Mongoose - Using CRUD operations in mongodb in nodejs

Mongoose - Using CRUD operations in mongodb in nodejs

MongoDB CRUD Operations Mongoose provides a simple schema based solution to…

How to check whether a website link has your URL backlink or not - NodeJs implementation

How to check whether a website link has your URL backlink or not - NodeJs implementation

Introduction I got my seo backlink work done from a freelancer. It was like 300…

How to connect to mysql from nodejs, with ES6 promise

How to connect to mysql from nodejs, with ES6 promise

Introduction I had to develop a small automation to query some old mysql data…

How to use NPM Rest API to get audit (npm audit) result

How to use NPM Rest API to get audit (npm audit) result

Introduction Npm has a tool called: npm audit which reports if your packages or…

Youtube API in NodeJs, Usage with Example

Youtube API in NodeJs, Usage with Example

This library is ES6, promise compatible. Or, in your package.json file, include…

Explaining issue: response to preflight request doesn't pass access control check

Explaining issue: response to preflight request doesn't pass access control check

You are developing a nodejs web application having some UI and backend APIs…