An Introduction to How Node.js Works

An Introduction to How Node.js Works

Node.js is famous for great players. When I first heard about him, I understand something very complicated. This is trying to explain to those who do not have a neck.
Denial: part of what I say in this article is not true, I know. It is as easy as the computer to work to show how node.js works, but not to explain how to work with the CPU. It would be a tree.

What I tried Node.js

Node.js is happy. I read/read many, said Ryan Dahl and the rest of the community to node.js. This is my last form.
node.js is a great tool to create a kind of integration of life on the site. This makes it easier to quickly transmit data to/from the Internet.
What can you do with this? Well, let's say, you build CRM. You can have a staff that can update your client's behavior so they can live. Then, if the seller is in the voice to receive comments, other staff can see it immediately. (If you do not put it back.)

Use node.js if you want to have a particular part of the mirror based on web and/or instantly
This works for this, but it does not have any other type of Internet, like cars, Django, .net and anything else. I could not, I just can not, this is not a purpose.
For example, if you create Facebook, it would be good if node.js update the news when there are new and updated updates.

  Now you have to explain how to work.

Normally, there are always big problems with computers where the CPU can do one thing at a time. This was solved for a long time, which allows us to "handle problems" in a CPU.
Therefore, if you want to facilitate if you have 10 threads, the CPU time will share the CPU full time equally to get the same time. Therefore, in 1 hour, each of the 10 women can obtain 100 ml.
It will be intermittent between the two sides since it is too high, the cycle is higher than the head. I will not initiate this, but I tell CS when I realized that I was happy that the computers are as close as possible.

node.js is scheduled

This is the real origin of node.js. It's not the fact that JavaScript is the server. It is a thread that produces repeated calls and does not block the largest number

Why are we going to explain,


Therefore, if you are thinking about the blog machine, for example. Regular web client like this:
1. Request a blog post
2. Call db to find blog articles.
3. Create HTML in the articles on your site
4. Send a response
Node.js is not working in a different way. The cover is different.
Now, the second step, (call DB to find blog articles), say it takes around 100 ms. They are always waiting to be assigned to answer. This is hard to call a collapse.

  Node.js addresses the risk of a period

Control the determination of what to do, instead of trying to leave.
When creating new bulbs in each application, there is an application line for each one. When a newcomer arrives, the event begins in the code. I would like to work as jQuery. For example, when you request data collection, do not block it until you return, and then start to return once the call ends.
The real difference is not really node.js, its code is different. That really lead the way to work node.js. You can do it in other languages, but the syntax and JavaScript nodes are very good.

 Problems with the IO application will benefit from this, while hard CPU codes will not.

However, most web developers are so severe, it is usually quite normal.


Comments

Popular posts from this blog

Basics concepts of React.Js

Difference Between JavaScript and AngularJS

Benefits of AngularJS vs Server-side MVC