L5 - Server-side Development 1 Flashcards

(7 cards)

1
Q

Web servers Vs Node.js

A

Web Servers: returns files in response to HTTP requests from clients
Node.js: Runs JavaScript on the server side, allowing for dynamic responses to HTTP requests

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

Node.js Ports

A

-Ports are communication endpoints for a host on a network (using TCP)
-Only one process can bind to a port at once (e.g. only one web server can listen on port 80)
-Port numbers range from 0-65535 (0-1023 are well known and have well-defined uses)

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

Node.js Endpoints

A

-An endpoint is the part of your code that receives and processes a request
-We usually have multiple endpoints (differentiated by URL path and http method)

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

Node.js Routes

A

Routing is the connection of incoming HTTP requests (from clients) to endpoints (handling of request). Express helps with this

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

Node.js Request/Response Objects

A

With web services, there are requests and responses. They are generated when a connection is received from a client. Like an event driven UI, wait for connection and send requests/responses

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

AJAX (Asynchronous JavaScript And XML)

A

Before AJAX, web pages were static. A technique that allows content to be updated after loading a page. Generally use JSON instead of XML now for exchanging encoded data. Implemented in the client side JS to query the server.

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

Axois

A

HTTP client library that simplifies querying a web service in JS. Can configure requests such as timeout.

NOT FINISHED

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