Posts
Best Practices for Production setup of Nodejs Application: Part I
Ensuring performance and reliability are critical aspects when deploying applications in a production environment. Optimizing performance involves …
Health Checks and Graceful Shutdown of Expressjs App using Lightship
Expressjs is a fast, unopinionated, minimalist web framework for Node.js. Few functionalities like graceful shutdown, health checks etc are implicitly …
Mongodb Capped Collections - An Overview
Capped collections provide fixed-size collections that enable high-throughput operations for inserting and retrieving documents based on their …
MongoDB Views: A Guide to Secure Data Access and Sharing
In today’s data-driven ecosystem, organizations face a significant challenge: balancing the imperative for data accessibility with stringent …
Mongoose Discriminator: The non DRY way to inherit schema properties
Mongoose Discriminator is another very useful and powerful yet underused feature of Mongoose. It serves as a means of schema inheritance, allowing you …
Understanding Mongoose Pre and Post middleware hooks
Pre and post middleware hooks is a very useful feature in Mongoose and provides a lot of flexibility during database operations like query, create, …
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 …