node.js Flashcards
1
Q
what does node.js allow you to do
A
build scalable network applications using js on the server-side
2
Q
noje.js provides what for v8 JS runtime
A
a wrapper
3
Q
why is node.js fast
A
written mostly in C
4
Q
what can you build with node
A
websocket server (chat, file uploads, ad server, any real-time app
5
Q
is node a framework
A
no
6
Q
is node multi-threadeded
A
no
7
Q
blocking code
A
statement blocks the initation of the next step
8
Q
non blocking
A
waits for beginning cal to finish termed a “callback” (parallel)
9
Q
node flow
A
request>even check loop until trigger>then goes to callback
10
Q
event types
A
request connection close
11
Q
typical blocks
A
calls out to web services
read/writes on the db
calls to extensions
node was meant to make all code non blocking