You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
croquiscom edited this page Aug 23, 2012
·
1 revision
Node.js는 확장 가능한 인터넷 애플리케이션(특히 웹 서버)을 만들기 위해 디자인되었고,
JavaScript로 쓰여져 Google의 V8 엔진위에서 동작하는 소프트웨어이다.
Python의 Twisted와 같이 이벤트 중심(event-driven), 비동기 I/O로 동작한다.
이벤트 중심 동작이기 때문에 단일 스레드에서 동작하고,
따라서 동시에 많은 접속이 있어도 부드럽게 처리할 수 있다.
Twisted와 같이 기존 언어에서 네트워크 모듈을 이벤트 중심, 비동기로 만든 프레임워크의 경우,
동기 I/O로 동작하는 다른 라이브러리와 혼합하면서 혼란의 여지가 있는데 반해,
Node.js는 모든 라이브러리를 비동기적으로 동작하는 것을 목표로 삼았다.
(클라이언트 JavaScript를 생각해보면 문화적으로 비동기 I/O가 이미 정착되어 있다는 점이 JavaScript를 사용한 이유)