Easier to read with cream paper, a tint, more contrast or larger text? Choose your colours and text, once, for every page.

Preview

Network integration points

This is the first page of the lesson. Read it and have a go at the activities. The rest is in the full lesson.

45 minutes

Who decides if you scored?

You play a football game online with nine other people. You press the shoot button.

Your phone shows the ball moving at once. But who decides if it is a goal? Your phone? Or a computer far away that sees all ten players?

Splitting work between your device and a far computer is a key design choice.

Key words

WordWhat it meansExample
LocalDone on the user's own device.reading a button press
RemoteDone on another computer, such as a server.sharing all player positions
NetworkComputers joined together so they can send data to each other.
Remote callA request that one computer sends to another to do a job and answer.
LatencyThe delay between sending a request and getting the answer.50 milliseconds
System boundaryThe line that shows what is inside your system and what is outside.
External systemA system run by someone else that yours connects to.a sports data feed
APIA set of rules that lets one program ask another for data or a job.

The cells students fill in are left blank in this preview.

Local or remote?

Some jobs must be local. They must be fast, and only your device needs them. Reading a button press is local.

Some jobs must be remote. They need data from many people, or the result must be trusted. The score of a multi-player game is remote, so nobody can cheat.

Every remote job adds latency. That is a delay.

Quick check: local or remote?

Have a go

Quick check: local or remote?

3 questions
Have a go: your answers are marked here and then forgotten. Sign in if you would like your score kept, and to pick up where you left off.Sign in to keep your score

Your answers are marked here and are not kept. A college account keeps every student’s marks.

Reading the boundary

PartWhere it isWhy
Read buttonsLocalMust feel instant
Draw the screenLocalYour device has the screen
Check the rulesRemoteThe result must be trusted
Share positionsRemoteNeeds data from all players
Sports data feedExternalRun by another company; we only connect to it

The cells students fill in are left blank in this preview.

How are they connected?

Data moves between local and remote parts over a network. The type of network matters. Home Wi-Fi is fast. Mobile data can be slow or stop working. A college network may block some data.

Often your design combines networks. A phone uses Wi-Fi at home, mobile data on a bus, and then the internet to reach the server.

Quick check: the network

Have a go

Quick check: the network

3 questions
Have a go: your answers are marked here and then forgotten. Sign in if you would like your score kept, and to pick up where you left off.Sign in to keep your score

Your answers are marked here and are not kept. A college account keeps every student’s marks.

The lesson goes on

7 more parts of this lesson are in the full curriculum, with the tasks, the final check and the labs. A college account gives your students all of it.