Node JS feem ntau siv rau dab tsi?
Node JS feem ntau siv rau dab tsi?

Video: Node JS feem ntau siv rau dab tsi?

Video: Node JS feem ntau siv rau dab tsi?
Video: Merging PDFs with Python! 2024, Kaum ib hlis
Anonim

Node . js yog feem ntau siv rau cov tsis-thaiv, kev tshwm sim-tsav servers, vim nws ib leeg-xov xwm. Nws yog siv rau cov vev xaib ib txwm muaj thiab cov kev pabcuam API rov qab, tab sis tau tsim nrog lub sijhawm tiag tiag, thawb-raws li architectures hauv siab.

Tib neeg kuj nug, qhov node JS yog dab tsi thiab vim li cas nws thiaj siv?

Node . js yog lub platform tsim los ntawm Chrome's JavaScript runtime kom yooj yim tsim ceev, scalable network applications. Node . js siv qhov kev tshwm sim-tsav, tsis thaiv I / O qauv uas ua rau nws lub teeb yuag thiab ua haujlwm tau zoo, zoo meej rau cov ntaub ntawv siv lub sijhawm tiag tiag uas khiav hla cov khoom siv sib faib.

Kuj Paub, yog vim li cas node js ceev? Yog vim li cas peb thiaj pom node . js yog ntau sai dua yog, nws muab tsis thaiv IO piv rau http servers. Thaum cov neeg siv thov browser khiav http, tiag tiag apache threads pab thov thiab tos kom tiav thiab tom qab mus rau lwm qhov kev thov. Nws yog hu ua thaiv IO xwm.

Tsis tas li ntawd, qhov node js tsis zoo rau dab tsi?

Tsis haum rau Heavy-Computing Apps Node . js tseem tsis tau txhawb nqa multi-threaded programming. Nws muaj peev xwm ua hauj lwm hauv kev siv ntau dua li Ruby, tab sis nws yog tsis haum rau ua kev suav ua haujlwm ntev. Kev suav hnyav thaiv cov lus thov tuaj, uas tuaj yeem ua rau txo qis kev ua haujlwm.

Dab tsi ua rau NodeJS txawv?

Muaj ob yam tseem ceeb uas ua Node . js sib rau cov uas twb muaj lawm server-sab moj khaum, asynchronous txheej xwm thiab siv JavaScript ua ib hom lus programming.

Pom zoo: