4.9 - Client Server Model Flashcards

1
Q

What is a simple description of the client server model?

A

Clients send request messages to servers, which reply to the clients with response messages.

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

What is an API?

A

An API (application programming interface) is a set of protocols relating to how different applications communicate with each other. They define how interaction between the applications should be carried out, allowing applications to make use of other applications.

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

What is the websocket protocol?

A

The websocket protocol is an example of an API which operates in the application layer of the TCP/IP stack. The protocol can be used to provide a constant stream of information between two devices, usually a client’s web browser and a server.

The connection created by the websocket protocol is full-duplex, meaning that data can be transmitted in both directions at the same time.

The websocket protocol, which allows for fast transmission of data by reducing the size of packet headers is used in video streaming, online games and instant messaging

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

What is CRUD?

A

CRUD is an acronym for :
- Create
- Receive
- Update
- Destroy

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

What is REST?

A

REST is an acronym for:
- REpresentational
- State
- Transfer

It is a design methodology for online database applications that are queried with a web browser.

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

What are the four HTTP request methods used by REST?

A
  • POST
  • GET
  • PUT
  • DELETE
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

How does a client connect to a database?

A
  1. Client-Server request made by the client to the web browser
  2. Web Browser responds with the requested web page (which is delivered as a text file)
  3. This text file contains JavaScript which loads an API. The API uses REST to enable the database server to be queried by the client with the use of HTTP request methods
  4. The client sends HTTP requests to the database server.
  5. The database server responds to the clients requests using either JSON or XML.

6.The clients browser processes the JSON or XML and displays the response to the user.

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

JSON vs XML

A
  • JSON is more compact, easier to read, easier to create and faster for computers to process than XML.
  • JSON can also be directly converted to Javascript or Python
  • XML is seen to be more flexible than JSON however
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What are thin client networks?

A

In Thin client networks, majority of the network’s processing power belongs to servers which provide services and resources including storage and processing.

Its easy to add new clients to Thin Client Networks and the clients are relatively inexpensive machines.

Thin Clients have greater centralised control of the network as software updates and security can be managed from the server.

The servers themselves need to be powerful and thus can be expensive to purchase and require expertise to set up and maintain.

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

What are thick client networks?

A

In Thick Client Networks, the clients are powerful enough to provide their own processing power and storage. This means there is no need for a server.

They are harder to maintain as there are no servers to issue updates and manage security from a central server.

Thick Clients have much quieter communication channels and have lower likelihoods of data collisions.

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