Client-Server Flashcards

(29 cards)

1
Q

What is the client-server model

A

A paradigm where providers of resources are designated as servers, and the resource requesters are the client.

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

What will a server do in the client-server model

A

Servers are passive and listen (wait) for incoming requests.
When a request is received the server will respond with the resources needed

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

What is the client in the client-server context

A

Service that makes the request.
Client process makes a request and will wait for a response

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

What is Client-side processing

A

Refers to any operations that happens on the client side

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

Why do operations use Client-side processing

A

It offloads processing to the client
Reduces load on server and reduces the communication bandwidth

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

Negatives of Client-side processing

A

Can pose a security risk

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

What is server-side processing

A

Refers to operations that happens on the server

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

Why is server-side processing used

A

As it gives more control over the environment in which the scripts are executed.
Scripts are hidden on the server
Server can be optimised to cope with heavy processing demands

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

What is API

A

A set of functions and protocols the client can use

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

What is a web socket protocol

A

An API for establishing a persistent TCP socket connection

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

What is CRUD

A

Create
Retrieve
Update
Delete

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

What does each element of CRUD do

A

Create - writes a record to a database
Retrieve - Gets a record from a database
Update - amends a record
Delete - removes a record from the database

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

What is a DBMS

A

A database management system
As multiple clients can update a database with only one copy of the database existing the DBMS will handle the requests.

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

What are the 4 ways the DBMS handles if different users want to update the same record

A

Record Locks
Serialisation
Timestamp ordering
Commitment ordering

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

What is record locks

A

When a user wants to update a record, the record is locked for the duration of the update

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

What is serialisation

A

Transactions can only happen one at a time and the DBMS handles the order

17
Q

What is Timestamp ordering

A

When a record is read its read timestamp is updated
Before record is written back, the DBMS will check the timestamp
If the timestamp has been changed then it will be cancelled

18
Q

What is Commitment ordering

A

Transactions from multiple clients, and the timestamps are all sent to the server.
The server creates a queue, using timestamps, and processes them in a FIFO manner

19
Q

What is HTTP communication

A

It is the application-layer protocol used to communicate between web servers and browsers

20
Q

HTTP communication using CRUD

A

POST
GET
PUT
DELETE

21
Q

What is REST

A

Representational State Transfer
An architectural style that determines how systems communicate

22
Q

Why is REST important

A

Allow client and server to be programmed independently while still able to interact with each other

23
Q

Difference between JSON and XML

A

JSON:
{“name”}

XML:

<name>
</name>

24
Q

Advantages and disadvantages of JSON

A

Advantages:
Easier for humans to read
More compact
Can be directly manipulated by JavaScript

Disadvantages:
Limited data types

25
Advantages and disadvantages of XML
Advantages: Any data types Disadvantages: Expansion of tags more difficult to follow
26
What is thin client network
Majority of network's processing power belongs to servers
27
What is thick-client network
The clients are powerful enough to provide own processing. No need for a server
28
Advantages and disadvantages of a thin client network
Advantages: Easy to set up, maintain and add terminals Server software and updates are automatically distributed More secure Disadvantages: Reliant on server Requires a powerful server Increased bandwidth demand for server
29
Advantages and disadvantages of a thick client network
Advantages: Robust and reliable Can operate without a server Better for running more powerful applications Disadvantages: Higher specifications needed Installation of software needs to be done separately Integrity issues with distributed data