Posts
Optimize Mongoose Queries for Speed & Efficiency: The Lean Way
Mongoose is a schema-based solution to model your application data in MongoDB. It includes built-in type casting, validation, query building, business …
Deep dive into Object.freeze() in Javascript
According to MDN, the Object.freeze() static method freezes an object. Freezing an object prevents extensions and makes existing properties …
Why Pino with Logrotate is the Best for Managing Logs in Nodejs Apps
Log files are very useful to troubleshoot, to track usage, improve performance, and monitor the overall health of the application. However, over time, …
Setup logging with Pino and express-http-context in Expressjs
Logging is an essential tool for debugging and understanding the behavior of your application. It allows developers to capture information about the …
Understanding TTL Indexes in MongoDB comprehensively
Time to Live (TTL) indexes are special single-field indexes in MongoDB that help delete documents from a collection after a specific amount of time or …
Enhance MongoDB Aggregation Experience with MongoDB Compass Queries
MongoDB Compass, as of 2018, comes with an aggregation pipeline builder to help make prototyping and debugging easier. This feature allows developers …
Deploy EC2 in Private Subnet & Securely Enable Internet Communication
Enterprise-grade security architectures demand that critical infrastructure like databases, application servers etc must be deployed securely in AWS …
The Complete MacBook Setup Guide for Web Development
Setting up your development environment correctly is crucial for productivity and efficiency in web development. This comprehensive guide will walk …
A One Time Password (OTP) generator npm library based on nanoid
Mobile number has become the defacto user authentication mechanism in India and hence, OTP generation is a very common use case. otp-gen-agent is a …
Use NVM and .nvmrc for a better Javascript development
Node Version Manager (NVM) is an open source version manager for Node.js (Node) and allows to easily install & manage different versions of Node …