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 efficient resource utilization, minimizing response times, and handling high user loads effectively. Reliability entails robust error handling, graceful failure recovery, and implementing fault-tolerant measures to ensure uninterrupted operation.
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 mandatory features for any production application. When you deploy a new version of your application, you must replace the previous version.
Mongodb Capped Collections - An Overview
Capped collections provide fixed-size collections that enable high-throughput operations for inserting and retrieving documents based on their insertion order. They function similarly to circular buffers, where once a collection reaches its allocated space, new documents overwrite the oldest ones in the collection.
Mongodb Views: A Secure Way to Access & Share Data
Data access and sharing data across teams or third parties are a very common phenomenon. Sharing sensitive data is a strict no. However, why even share data which is irrelevant for the data consumer.
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 to use multiple models with intersecting schemas on the same underlying MongoDB collection.
All Tags:
abortcontroller
1
abortsignal
1
access
1
aggregation-pipeline
1
async
3
aws
1
capped
1
clustering
1
data-processing
1
database
6
destructuring
1
es6
2
eslint
1
eventloop
1
expressjs
5
finally
1
grid
1
image-grid
1
ipc
1
javascript
20
loops
1
material-ui
1
mongodb
9
mongodb-compass
1
mongoose
4
nested
1
nodejs
20
nvm
1
object
1
pino
2
prettier
1
reactjs
1
schema
2
security
1
streams
2
subdocument
1
tech
2
template-literals
1
time-to-live
1
timers
1
ttl-index
1
url
1
vscode
1