01

Two halves of one product

Open a food delivery app and you see photographs, prices, a basket and a button marked Order. That visible, touchable layer is the front end. Behind it sits the back end: servers, often in a data centre hundreds or thousands of kilometres away, that hold the menus, know which restaurants are open, calculate delivery fees, take payments and dispatch riders. The two halves are written by different specialists using different tools, and they communicate through agreed messages sent over the internet. A useful comparison is a restaurant. The front end is the dining room and the waiter; the back end is the kitchen, the stockroom and the till.

02

What the front end does

On the web, the front end is built from three languages. HTML describes structure: this is a heading, this is a list, this is a form. CSS controls appearance, from colours and fonts to how a layout rearranges itself on a narrow phone screen. JavaScript adds behaviour, reacting to taps, updating parts of the page without reloading and fetching fresh data. Phone apps use their own languages and toolkits but play the same role. Front-end developers obsess over speed, readability, accessibility for people using screen readers, and making the interface work on thousands of different devices, screen sizes and network conditions. Their code runs on your hardware, using your processor and battery.

03

What the back end does

The back end runs on servers the company controls. It is written in languages such as Python, Java, Go, C# or JavaScript, and it talks to databases that store accounts, orders and messages. Its jobs are rarely glamorous but they are essential: checking that you are logged in, enforcing business rules, calculating totals, processing payments through banks, sending notifications and keeping records consistent when thousands of people act at once. It must also scale, adding more machines at busy times such as Friday evening in Dubai or the start of a big sale. Back-end engineers worry about reliability, security, data integrity and what happens when a component fails.

04

A request, step by step

Imagine ordering a meal costing AED 45 with a AED 7 delivery fee. When you tap Order, the front end sends the back end a request listing the dishes and your address. The back end does not simply trust the AED 52 total shown on your screen. It looks up current prices itself, confirms the restaurant is open and the address is in range, recalculates the total, then asks the payment provider to charge your card. If all succeeds, it saves the order, alerts the restaurant and replies with a confirmation number. The front end then shows a success screen and starts tracking the rider. The whole exchange typically takes a second or two.

05

Never trust the client

That recalculation reflects a core rule of software security: never trust the front end. Because front-end code runs on the user's device, a determined user can inspect it, modify it or send fake requests that bypass the interface entirely. A price, discount or permission enforced only on the screen can be changed by anyone with basic tools. Real checks therefore belong on the back end, where the company controls the environment. The front end can still validate inputs, for example warning that an email address looks wrong, but that is for convenience, not protection. Many serious data breaches have come from back ends that assumed requests always arrived from their own well-behaved app.

06

Blurred lines and full-stack work

The boundary is not fixed. Some websites build complete pages on the server and send them ready to display, which helps them load quickly and appear in search results. Others send a bare shell and let JavaScript in the browser assemble everything. Some processing, such as photo filters or voice wake words, deliberately runs on the device for speed and privacy. Developers who work comfortably on both sides are called full-stack developers. For anyone choosing a career, the split is a useful map: front-end work suits people drawn to design and user experience, back-end work suits those who enjoy data, systems and infrastructure. Both are needed for anything people actually use.

FOLLOW THE EVIDENCE

Sources & further reading

Figures are rounded and widely published; check the linked organisations for the latest editions. These organisations do not endorse this website.