NodeJs for DummiessteemCreated with Sketch.

in #nodejs7 years ago (edited)

nodejs.png
NodeJs is a server side technology to create websites and web services using JavaScript and TypeScript programming languages

TypeScript is basically more advanced JavaScript

the 2 breakthrough concepts of NodeJs are :

  1. its JavaScript
    till nodejs arrived, js was only client programming language that run on browser and not on the server

  2. its pure Asynchronous
    this is the main big thing that nodejs bring

Synchronous - i do something and if it not finished then i keep waiting
Asynchronous - i do something and then i move do the next thing and when i get the result from the first then i handling him

Example of Asynchronous - i make Query to database, and i dont need to wait for the result, i move to do something else and when the result of the query is back i handle it

the benifit of Asynchronous in web servers
is that the server has the ability to receive and handle more requests then
synchronous server, a lot more