RESTful Serverless APIs with Node.js

0.0(0)
studied byStudied by 0 people
0.0(0)
full-widthCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/23

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

24 Terms

1
New cards

What is Node.js?

A JavaScript engine that runs JavaScript WITHOUT a browser using a runtime environment.

2
New cards

What is a Node.js package?

A collection of prebuilt JavaScript functions stored in a reusable module.

3
New cards

What is an API?

An Application Programming Interface that allows a client and server to communicate.

4
New cards

What does the client application do in an API system?

Sends requests to the server and receives responses.

5
New cards

What does the server application do in an API system?

Processes requests and sends back responses.

6
New cards

What is REST in RESTful APIs?

Representational State Transfer

7
New cards

Which HTTP methods do RESTful APIs commonly use?

GET

8
New cards

What does an HTTP GET request generally do?

Retrieves data from the server.

9
New cards

What do you need before creating a serverless API?

An AWS Lambda function and an API Gateway configuration.

10
New cards

Why do we enable VPC for the Lambda function?

To allow the Lambda function to run inside a private network environment.

11
New cards
What is a RESTful API?
An API that follows REST constraints.
12
New cards
Why do most RESTful APIs use HTTP?
Because HTTP makes them easy to use over the web.
13
New cards
What is the Client-server architecture rule in REST?
User interface and data/processing are separate.
14
New cards
Why do we care about Client-server architecture?
Each component can be developed independently.
15
New cards
What is the Statelessness rule in REST?
The server does not rely on previous requests.
16
New cards
Why do we care about Statelessness?
Any server running the API can fulfill any client request.
17
New cards
What is the Cachability rule in REST?
Frequently accessed data can be stored for quick access.
18
New cards
Why do we care about Cachability?
It makes the application run faster.
19
New cards
What is the Layered system rule in REST?
Code works with intermediaries such as load balancers.
20
New cards
Why do we care about the Layered system?
It allows immediate scalability and mass deployment.
21
New cards
What is the Uniform interface rule in REST?
A self-contained
22
New cards
Why do we care about the Uniform interface?
Client developers know exactly how to code a request to the API.
23
New cards
What does CORS stand for?
Cross-Origin Resource Sharing.
24
New cards
What does enabling CORS allow?
It allows an API to accept requests from domains other than the one the API is hosted on.