what’s compiled binary file in nodejs, how to do that?
deno compile
nexe or pkg do for Node
Event loop in Nodejs
5 phases of event loops
What’s the Microtasks ?
immidate tasks
These are executed after each phase of the event loop. This is where promises are executed.
setTimeout vs. setImmediate
The “setTimeout” function in Node.js is commonly used to schedule functions to be executed after a certain amount of time.
“setImmediate” functions are executed before any pending “setTimeout” callbacks, I/O callbacks
Helmet is a Node.js?
It helps protect web applications from a variety of common security vulnerabilities, such as cross-site scripting (XSS), clickjacking, and more.
Morgan Middleware in nodejs ?
Morgan is a popular logging middleware for Node.js applications. It is used to log HTTP requests and responses in a structured format, making it easier to monitor and debug web server activity.
Why using classes for defining DTO instead of interfaces in NestJs?
Decorator vs decorator factory in typescript
In TypeScript, decorators are a way to add metadata to classes, methods, or properties.
use cases of node-http-proxy
HTTP proxy is like a middleman
Loadbalancing
API gateway
Improving security
Access control
caching content to speed up access