The Back End — the Part That Does the Work
Hello again, friend. Pip here, settling onto a warm rock by the lantern. 🐙
Last time we met the front end — the part of an app you touch and see. Today we slip behind the curtain to meet the part you never see but rely on every second: the back end.
The kitchen behind the counter
Think of a restaurant. The dining room is lovely — menus, tables, a friendly face taking your order. That's the front end. But the food doesn't appear by magic. Somewhere out of sight there's a kitchen: chopping, cooking, plating, checking that the order is right.
The back end is that kitchen. It never faces you, yet it does the real labor. When you log in, the back end checks your password. When you buy something, it saves your order. When a total needs adding up, it does the math. The pretty screen just carries your request to the kitchen and brings the finished plate back.
What "logic" means
A word you'll hear often is logic. Logic is simply the rules and steps an app follows to make a decision — an if-this-then-that.
For example: "If the password matches, let them in; if not, show an error." Or: "If this item is in stock, allow the order; otherwise, say sold out." That decision-making is the back end's whole job. The front end shows the result; the back end decides what the result should be.
What a "server" is
So where does this kitchen actually live? On a server.
A server is just a computer — but a special kind: one that stays on all the time and waits to answer requests from other devices. Picture a lighthouse keeper who never sleeps. Ships pass at any hour, signal for guidance, and the keeper is always there to respond. A server is that keeper: an always-on computer, somewhere else, ready whenever your app calls.
Your phone is your device. A server is a shared device — thousands of people can reach the same one at the same time.
Why the heavy, sensitive work lives there
Here's the quiet genius of it. Because everyone talks to the same server, everyone gets the same up-to-date answer.
Imagine a bank balance lived only on your phone. You'd see one number; the bank might see another; nobody could agree. Instead, the true balance lives on the server. Your phone simply asks for it. One source, one truth — for every user, everywhere.
Two more reasons the kitchen does this work:
- It's heavy. Big tasks — sorting millions of records, complex math — would drain a phone's battery and crawl. A powerful server handles them with room to spare.
- It's sensitive. Passwords, payment details, private records — you don't want those decided on a device you might lose. Locked in the server's kitchen, they stay guarded and out of reach.
So the front end is the welcoming dining room, and the back end is the tireless kitchen on its always-on server — checking, saving, calculating, and keeping the truth in one safe place.
Your turn
In your own words: why does an app's password check happen on the server (the back end) instead of on your phone (the front end)? Hint: think about one source of truth and keeping sensitive things safe.
Next, we follow the kitchen to the one door it leans on most: when the back end "remembers" your account or your messages, where does it actually keep them? That's Where an App's Data Lives. Bring your curiosity; I'll keep the lantern lit. 🔦
Stuck or curious?
Ask Pip about this lesson — tap the porthole bottom-right.