Search found 9 matches

by aryatechno
Tue Sep 26, 2023 10:49 am
Forum: The Node.js Event Loop, Timers, and process.nextTick()
Topic: What is process.nextTick()?
Replies: 0
Views: 6666

What is process.nextTick()?

You may have noticed that process.nextTick() was not displayed in the diagram, even though it's a part of the asynchronous API. This is because process.nextTick() is not technically part of the event loop. Instead, the nextTickQueue will be processed after the current operation is completed, regardl...
by aryatechno
Tue Sep 26, 2023 10:48 am
Forum: The Node.js Event Loop, Timers, and process.nextTick()
Topic: What is the timers?
Replies: 0
Views: 5113

What is the timers?

A timer specifies the threshold after which a provided callback may be executed rather than the exact time a person wants it to be executed. Timers callbacks will run as early as they can be scheduled after the specified amount of time has passed; however, Operating System scheduling or the running ...
by aryatechno
Tue Sep 26, 2023 10:47 am
Forum: The Node.js Event Loop, Timers, and process.nextTick()
Topic: What is the Event Loop?
Replies: 0
Views: 3450

What is the Event Loop?

The 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 bac...
by aryatechno
Tue Sep 26, 2023 10:43 am
Forum: Overview of Blocking vs Non-Blocking
Topic: Non-Blocking
Replies: 0
Views: 7059

Non-Blocking

All of the I/O methods in the Node.js standard library provide asynchronous versions, which are non-blocking, and accept callback functions. Some methods also have blocking counterparts, which have names that end with Sync. Blocking methods execute synchronously and non-blocking methods execute asyn...
by aryatechno
Tue Sep 26, 2023 10:40 am
Forum: Overview of Blocking vs Non-Blocking
Topic: Node js Blocking
Replies: 0
Views: 2714

Node js Blocking

Blocking is when the execution of additional JavaScript in the Node.js process must wait until a non-JavaScript operation completes. This happens because the event loop is unable to continue running JavaScript while a blocking operation is occurring. In Node.js, JavaScript that exhibits poor perform...
by aryatechno
Tue Sep 26, 2023 10:35 am
Forum: ES6 features
Topic: How do I find which version of V8 ships with a particular version of Node.js?
Replies: 0
Views: 3739

How do I find which version of V8 ships with a particular version of Node.js?

Node.js provides a simple way to list all dependencies and respective versions that ship with a specific binary through the process global object. In case of the V8 engine, type the following in your terminal to retrieve its version:
node -p process.versions.v8
by aryatechno
Tue Sep 26, 2023 10:32 am
Forum: ES6 features
Topic: ECMAScript 2015 (ES6)
Replies: 0
Views: 4686

ECMAScript 2015 (ES6)

Node.js is built against modern versions of V8. By keeping up-to-date with the latest releases of this engine, we ensure new features from the JavaScript ECMA-262 specification are brought to Node.js developers in a timely manner, as well as continued performance and stability improvements. All ECMA...
by aryatechno
Tue Sep 26, 2023 10:12 am
Forum: why should we use node js?
Topic: Disadvantages of node.js
Replies: 0
Views: 3090

Disadvantages of node.js

Not Ideal for CPU-intensive tasks Its event-driven nature makes applications highly scalable. But if your application has to run tasks that are CPU-intensive and heavy computing, Node. js might not be the best choice for you. Because when a heavy task is running, it blocks the Node. steep learning c...
by aryatechno
Tue Sep 26, 2023 9:01 am
Forum: why should we use node js?
Topic: Advantages of Node.js
Replies: 0
Views: 2584

Advantages of Node.js

Node. js has below Advantages.
High Performance.
Scalability.
Easy to Learn.
Reduces Loading time using caching.
Improves Response time and boosts performance.
Large Community Support.
Cost-Effective.
Extensibility.