Event Loop is what allows Node.js to perform non-blocking I/O operations — despite the fact that JavaScript is single-threaded — by offloading operations to the system kernel whenever possible.
Since most modern kernels are multi-threaded, they can handle multiple operations executing in the background.
Timers and process.nextTick() are core concepts of Nodejs. It is important to undestand and be familiar with these and use them with ease. setTimeout(callback, 0), setImmediate(callback) and process.nextTick(callback) appear to be doing the same thing.
I had to search a lot before figuring out a proper way to install and configure a production ready standalone MongoDB installation in AWS EC2 instance. I am sharing my learnings and hope it is useful for others.
What is destructuring assignment? The destructuring assignment syntax is a JavaScript expression that makes it possible to unpack values from arrays, or properties from objects, into distinct variables.
- MDN
A stream is an abstract interface for working with streaming data in Node.js. Streams have gained the reputation that it is hard to work with and harder to understand. However, it is a highly underrated but very powerful concept in Node.
All Tags:
abortcontroller
1
abortsignal
1
access
1
aggregation-pipeline
1
async
3
aws
1
capped
1
clustering
1
data-processing
1
database
8
destructuring
1
es6
2
eslint
1
eventloop
1
expressjs
5
finally
1
grid
1
image-grid
1
indexing
1
ipc
1
javascript
20
loops
1
material-ui
1
mongodb
11
mongodb-compass
1
mongoose
4
nested
1
nodejs
20
nvm
1
object
1
performance
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