Skip to content
BENIBIX Learn

Client-Server Architecture

Development🏗️ ArchitectureArchitecture Styles

Also known as Client-Server Model, Client Server

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

Think of it like

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

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.

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.

Common mistake

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

Key takeaways

  1. 1
    Client asks. Browser or app.
  2. 2
    Server answers. Holds data and rules.
  3. 3
    Check on the server. Never trust the client.