GCSE · Computer Science · OCR · Spec J277
Web servers and clients
A shop page tells you there are 7 left in stock. Your phone did not count them. So where did that number come from?
Step through it
One shop page, from tap to screen
A made-up online shop. Press Next to follow one visit: who sends what, where the code runs, and when.
Before you press Next: this page will end up showing '7 left'. Where do you think that figure gets looked up: on your phone, or somewhere else?
Output
Request: client to web server
Step 1: You tap a product in the shop. Your phone is the client, so it sends a request over the internet to the web server that hosts the shop.
Press Next to follow the visit one step at a time. The shop and its figures are made up.
WHAT YOU'VE LEARNED
A quick recap of today's lesson.
Who asks, who answers, and where the code runs when you open a web page.
What you need to know
- A client is the device you use to get content or services over the internet, such as a laptop, tablet or smartphone.
- A web server is a powerful computer that hosts content and services so they can be accessed over the internet.
Have a goYour mate waves their phone and says, "Look, I'm the server now!" What should they call the phone instead?
A client.
A phone is a device used to access content, which makes it the client. The server is the powerful computer that hosts that content.
- Hosting is storing a website or online service on a server so it can be reached over the internet. That server is the host.
- The client sends a request. The web server responds by sending the content or service back to the client.
Have a goYou tap a link. Who makes the first move in the exchange, the client or the web server?
The client. It sends the request.
The web server responds to a request by sending content back, so the exchange starts with the client.
- Most websites are hosted by an external web hosting provider, which rents out its own dedicated servers to businesses and individuals.
- Hosting companies often add other services too: security, website builders, backups, technical support, email services and analytics.
- Host your own server instead and it is on you: security, backups, technical support, maintenance and keeping it switched on at all times.
Have a goYou host your own web server, then switch it off at bedtime to save power. Whose problem is that?
Yours.
Hosting your own server puts the responsibility on you, and that includes keeping it on at all times.
- Large online services such as Google, Meta and Amazon host their own web services, using dedicated data centres.
- Client-side processing runs code on your device, in your browser, usually written in JavaScript. It makes pages interactive.
- Server-side processing runs code on the web server before the page is sent. It often creates dynamic pages and commonly uses databases.
The big picture
A client is the device used to access content or services over the internet. A web server is a powerful computer that hosts them, responding when the client sends a request. Hosting means storing a website on a server. Most sites use an external hosting provider; if you host your own server, security, backups, technical support, maintenance and keeping it on are down to you. Code can run client-side, in your browser, or server-side, on the web server before the page is sent.
Key points
Worked example
Problem
A cinema's website shows how many seats are left for tonight's film, and it has a banner that animates. Decide where the code behind each one runs, and why.
⚠ Watch out
Thinking a website lives on the device you view it on. It is hosted on a web server. Your device is the client: it requests the site and the web server sends it back.
Memory hook
Client asks, server answers, browser acts. Server-side code does its bit before the page is sent, client-side code after it arrives.
Check yourself
Cover the page. Talk through what happens from tapping a link to seeing the page, and say which kind of code runs at which end.
Flashcards
(13)What is a client?
What is a web server?
What is hosting?
In hosting, what is the host?
How do a client and a web server work together?
Where are most websites hosted?
Name three extra services a web hosting company often provides.
What jobs fall on you if you host your own web server?
How do Google, Meta and Amazon host their web services?
What is client-side processing?
What is server-side processing?
Which kind of processing does not access databases directly?
Is a website stored on the device you view it on?
Tap any card to flip it, or use Study as deck to go through them one at a time. In the full lesson these run as a spaced-repetition deck — you rate each card Hard, Good or Easy and the tricky ones keep coming back until they stick.
Learning with Lightbulb is opening soon
You can use this lesson now. Join the waitlist and we'll let you know when the full Lightbulb experience is ready.
Keep me postedMore OCR GCSE Computer Science topics
How this lesson was checked. This OCR GCSE Computer Science (specification J277)lesson was published through Lightbulb Learning's human-designed editorial process — the educational standards, accuracy rules and publication checks it must pass were authored and approved by Philip Halpin. It passed subject-specific assessment, automated educational checks and technical publication verification before going live (publication checks completed 14 November 2026). Published pages are monitored, human spot-checking is ongoing across the lesson library, and anything found wrong is corrected or withdrawn. How our lessons are made and checked. Spotted a mistake? Email hello@lightbulblearning.co and we'll review it.