Client-server Technologies Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

What is the client-server model

A

Paradigm where providers of resources are designated as servers and resource requesters are designated as clients

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

What is client-side processing

A

Refers to any operations carried out on the ‘client’ side of relationship.

Almost always some processing carried out by client

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

Role of web browser

A

Typical example of client-side processing

Formats a web page according to the HTML tags and CSS styling sent to it by server

HTML pages can include scripts, can carry out tasks such as validating form data and creating dynamic page features

Scripts interpreted by web browser

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

Why are operations carried out client-side

A

Offloads processing to client, reducing load on server and reduces communications bandwidth

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

Risks of client-side processing

A

security risk as malicious content can be easily distributed as code that creates a stunning slide show

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

What is API

A

Set of functions and protocols that clients use

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

What is a server-side web API

A

Set of web services or web resources to enable programmers to build web applications

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

What can server-side APIs be used for

A

Multiple can be used to create combined web applications called mashups

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

What is server-side processing

A

Operations carried out on server

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

Role of web server

A

Web browser sends a HTTP request

Sends and retrieves data to/from database via a server-side script

Server-side script provides a HTTP response, sending web page to web browser

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

Why is server-side processing preferred by system developers

A
  • more control over environment where scripts are executed. Developers know which version of interpreter will be used
  • scripts hidden on server, helps protect intellectual copyright & prevents tampering
  • servers can be optimised to cope with heavy processing demands
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What does the Websocket protocol do

A

Provides persistent full duplex connection between client & server.

Means both client and server can use connection to start sending data any time

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

Benefits of Websocket protocol

A

Data can be pushed from server without having to be initiated by HTTP request from client.

Reduces latency as once connection is made messages are automatically received without need for security checks

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

How is data transferred during Websocket Protocol

A

As messages, each consist of one or more frames that are reconstructed when received

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

What are the possible frames of the Websocket protocol

A

Text frames
Binary frames e.g. image data
‘Ping/pong’ frames (used to check connection)
Control frames e.g. to close connection

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