Node.js는 서버 측에서 JavaScript를 실행할 수 있게 해주는 런타임 환경입니다. Chrom의 핵심인 V8 자바스크립트엔진을 실행합니다. Node.js 앱은 모든 요청에새 스레드를 만들지 않고 단일 프로세스로 실행됩니다. 다음은 Node.js의 주요 특징입니다.
1. 비동기 I/O
Node.js는 비동기적으로 작동하여 대량의 요청을 효율적으로 처리할 수 있습니다.
비동기 I/O 관련자료
- https://nodejs.org/en/learn/asynchronous-work/overview-of-blocking-vs-non-blocking
- https://developer.mozilla.org/ko/docs/Learn/JavaScript/Asynchronous
2. 이벤트 기반
이벤트 루프를 이용해 비동기 작업을 관리하며 이를 통해 높은 성능을 유지합니다.
이벤트루프 관련자료
- https://developer.mozilla.org/ko/docs/Web/JavaScript/Event_loop
- https://nodejs.org/en/learn/asynchronous-work/event-loop-timers-and-nexttick
3. 모듈 시스템
npm(Node Package Manager)을 통해 다양한 패키지를 쉽게 설치하고 사용할 수 있습니다.
4. 크로스 플랫품
윈도우, 맥, ,리눅스 등 다양한 운영 체제에서 실행 가능합니다.
5. 웹 서버 구축
간단한 코드로 웹 서버를 만들고 RESTful API 개발에 적합합니다.
관련자료
- https://nodejs.org/en/about
- https://www.youtube.com/watch?v=uVwtVBpw7RQ
- https://www.w3schools.com/nodejs/nodejs_intro.asp
https://idocleancode.tistory.com/436
[Node.js] 학습 로드맵
Node.js 소개Node.js 이란? 참고자료https://roadmap.sh/nodejs Node.js Developer Roadmap: Learn to become a modern node.js developerLearn to become a modern node.js developer using this roadmap. Community driven, articles, resources, guides, i
idocleancode.tistory.com