Posts
Understanding Backpressure and Stream Optimization in Nodejs
In the world of data handling and transfer, one common challenge that arises is backpressure. If you’ve ever encountered a situation where data …
What is finally method and finally block in Javascript?
The word finally in Javascript is used in two contexts mainly; finally method with Promises and finally{} block with try-catch. People intermittently …
Avoid JavaScript Template Literals for Building URLs with Query Params
Template literals are literals delimited with backtick (`) characters, allowing for multi-line strings, string interpolation with embedded …
Best Practices for Production setup of Nodejs Application: Part II
Ensuring performance and reliability are critical aspects when deploying applications in a production environment. Optimizing performance involves …
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, …