WEB-2-Nested-Resources-and-Authentication Flashcards

1
Q

What is Node.JS?

A

Node.JS is a JS runtime that allows you to build scalable applications using JavaScript on the server-side.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Why is Node.JS so fast?

A

Because under-the-hood it is all written in C.

Also, it was designed to be non-blocking, meaning events can run in parallel instead of having to wait for an event to finish, in order to start another one.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What can be built with Node.JS?

A

A web socket server like a chat server

A file upload client

An Ad server

Any real-time data apps

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What isn’t Node.JS?

A

Web Framework
For Beginners
Multi-Threaded

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Why JavaScript?

A

JavaScript makes it relatively easy to program in an evented way. Because of this, you can write code that is potentially non-blocking, which means you can write code that is processed a lot faster.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is the event loop?

A

When we run a node, it registers a lot of requests such as

  1. request
  2. response
  3. close

and these events can trigger more events, which leads to an event loop that is constantly looking for events and triggering them into an event queue

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Are events processed one at a time? Yes/No

A

Yes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly