logo

Learning objective

Client server model: Be familiar with the client server model. Client sends a request message to server, server responds to request by replying with a response message to client. Be familiar with the Websocket protocol and know why it is used and where it is used. The Websocket specification defines an API (Application Programming Interface) establishing a full-duplex 'socket' connection between a web browser and a server over TCP. This means that there is a persistent connection between client and server, allowing both parties to send data at any time. Be familiar with the principles of Web CRUD Applications and REST: • CRUD is an acronym for: • C – Create • R – Retrieve • U – Update • D – Delete. • REST enables CRUD to be mapped to database functions (SQL) as follows: • GET → SELECT • POST → INSERT • DELETE → DELETE • PUT → UPDATE. Students should understand the principles: • database connected to browser using REST – Representational State Transfer - which relies on HTTP request methods • REST allows JavaScript to talk to server through HTTP • REST API (Application Programming Interface) created and run on server, browser Javascript calls API • JSON (JavaScript Object Notation) or XML can be used to transmit data between a server and web application • Javascript referenced by HTML file, eg index.html, is run in browser. Compare JSON (Java script object notation) with XML. JSON compared with XML is: • easier for a human to read • more compact • easier to create • easier for computers to parse and therefore quicker to parse.

Read the explanation, check the common trap, then practise with flashcards and questions.

At a glance

0

Flashcards

0

Questions

Topic

The Transmission Control Protocol/Internet Protocol (TCP/IP)

Subtopic

Client server model

Aqa A Level Computer ScienceFundamentals of communication and networking

Study support

Understand this objective

Quick explanation

Client server model: Be familiar with the client server model. Client sends a request message to server, server responds to request by replying with a response message to client. Be familiar with the Websocket protocol and know why it is used and where it is used. The Websocket specification defines an API (Application Programming Interface) establishing a full-duplex 'socket' connection between a web browser and a server over TCP. This means that there is a persistent connection between client and server, allowing both parties to send data at any time. Be familiar with the principles of Web CRUD Applications and REST: • CRUD is an acronym for: • C – Create • R – Retrieve • U – Update • D – Delete. • REST enables CRUD to be mapped to database functions (SQL) as follows: • GET → SELECT • POST → INSERT • DELETE → DELETE • PUT → UPDATE. Students should understand the principles: • database connected to browser using REST – Representational State Transfer - which relies on HTTP request methods • REST allows JavaScript to talk to server through HTTP • REST API (Application Programming Interface) created and run on server, browser Javascript calls API • JSON (JavaScript Object Notation) or XML can be used to transmit data between a server and web application • Javascript referenced by HTML file, eg index.html, is run in browser. Compare JSON (Java script object notation) with XML. JSON compared with XML is: • easier for a human to read • more compact • easier to create • easier for computers to parse and therefore quicker to parse

  • This point belongs to The Transmission Control Protocol/Internet Protocol (TCP/IP), especially Client server model.
  • You need to be able to client server model: Be familiar with the client server model. Client sends a request message to server, server responds to request by replying with a response message to client. Be familiar with the Websocket protocol and know why it is used and where it is used. The Websocket specification defines an API (Application Programming Interface) establishing a full-duplex 'socket' connection between a web browser and a server over TCP. This means that there is a persistent connection between client and server, allowing both parties to send data at any time. Be familiar with the principles of Web CRUD Applications and REST: • CRUD is an acronym for: • C – Create • R – Retrieve • U – Update • D – Delete. • REST enables CRUD to be mapped to database functions (SQL) as follows: • GET → SELECT • POST → INSERT • DELETE → DELETE • PUT → UPDATE. Students should understand the principles: • database connected to browser using REST – Representational State Transfer - which relies on HTTP request methods • REST allows JavaScript to talk to server through HTTP • REST API (Application Programming Interface) created and run on server, browser Javascript calls API • JSON (JavaScript Object Notation) or XML can be used to transmit data between a server and web application • Javascript referenced by HTML file, eg index.html, is run in browser. Compare JSON (Java script object notation) with XML. JSON compared with XML is: • easier for a human to read • more compact • easier to create • easier for computers to parse and therefore quicker to parse.
  • Use the linked flashcards and practice questions to check recall, then practise applying the idea in an exam-style answer.

Why it matters

This objective helps connect Client server model to exam-style questions, flashcards, and revision notes for The Transmission Control Protocol/Internet Protocol (TCP/IP).

Quick student answer

In the client-server model, what normally happens after a client sends a request message?

Direct answer

The server sends a response message to the client

Key terms

  • REST API: An Application Programming Interface created and run on a server that allows browser JavaScript to communicate with the server through HTTP request methods.
  • WebSocket: A protocol whose specification defines an API establishing a persistent, full-duplex socket connection between a web browser and a server over TCP.

Common trap

Confusing PUT and POST: Remember the specified mappings: POST maps to INSERT, while PUT maps to UPDATE.

Related questions

Try this as a practice card

4 linked

Question 1 of 4

Choose an answer, get feedback, then move sideways through the set.

0 of 4 attempted

Flashcard prompts

Flip through the key recall cards

4 cards

Flashcard 1 of 4

Press Space to flip, arrows to move

Revision tools

Choose how to practise

Back to topic hub
Flashcards0 linked cards
No objective-specific flashcards are cached for this page. Use the topic hub to revise the surrounding flashcards without triggering a frozen-subject DB fallback.Open topic hub
Practice Questions0 linked questions
No objective-specific practice questions are cached for this page. Use the topic question bank to practise nearby curriculum questions without weakening the egress guard.Open topic questions

Related learning objectives