# Client-Server Architecture

> A system split in two: clients that ask and servers that answer.

**Field:** Software Development  
**Category:** Architecture  
**Also known as:** Client-Server Model, Client Server

## Think of it like

Think of it like a restaurant. Diners ask for food, and the kitchen makes it and sends it out.

## Definition

Client-server architecture splits a system into clients that ask and servers that answer. The client is what the user touches, like a browser or a phone app. The server holds the data and the rules, and serves many clients at once. They talk over a network using an agreed set of rules, such as HTTP. Almost the whole web works this way.

## Example

Emma opens a weather app on her phone. The app, the client, asks a server for today's forecast. The server looks it up and sends it back.

## Why it matters

It is the shape behind websites, apps and email. Knowing it explains where code runs and where data lives.

## Common mistake

Trusting checks done only in the client. Anyone can change the client, so the server must check everything again.

## Three principles

- **Client asks.** Browser or app.
- **Server answers.** Holds data and rules.
- **Check on the server.** Never trust the client.

## Related terms

- [Front End](https://learn.benibix.com/term/development/front-end)
- [Back End](https://learn.benibix.com/term/development/back-end)
- [HyperText Transfer Protocol (HTTP)](https://learn.benibix.com/term/infrastructure/http)
- [Software Architecture](https://learn.benibix.com/term/development/software-architecture)
- [Peer-to-Peer (P2P)](https://learn.benibix.com/term/development/peer-to-peer)

---

Source: https://learn.benibix.com/term/development/client-server-architecture
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-17
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
