Client–server architecture is distinguished by a division of labor in which client processes initiate requests for services and server processes listen for, fulfill, and coordinate access to those services, typically across a network boundary. Everything else commonly listed as a "feature"—centralized data, shared resources, request–response messaging, scalability through multiple clients, and separate deployment of client and server software—follows from that role split rather than defining it independently. The single most reliable test is directional: who initiates, who listens, and who holds or governs the resource being requested.

Because "client–server" is used at several levels, some ambiguity should be resolved early. It can describe a deployment topology (a desktop application talking to a database server), a communication pattern (request–response over a protocol such as HTTP), or a logical responsibility split inside one machine (a browser engine and a local service). These are related but not identical. A program can use the client role and server role within a single process without any network, and two networked programs can exchange messages without a clean client–server split (peer-to-peer). The features below apply most exactly to the networked, multi-tier form the term usually names.

The defining feature: asymmetric roles around a shared service

The core property is an asymmetry of responsibility. A server offers a capability—storing records, authenticating users, rendering a document, streaming video, resolving names—and is prepared to receive requests for it. A client depends on that capability and asks for it. The server does not usually initiate the transaction; it waits in a listening state, whether that is a socket bound to a port, a message queue subscription, or a scheduled batch job that picks up queued jobs.

This is why "two computers connected" is not enough to be client–server. In a peer-to-peer file-sharing network, each participant both offers and consumes; roles are symmetric and may change per transaction. In a client–server system, the roles are stable for the duration of a session and usually codified in software: the database management system does not phone the reporting tool to ask whether it would like a query.

A second defining element is that the server owns or arbitrates a shared, scarce, or authoritative resource. Classic examples: a relational database arbitrating concurrent writes; an authentication service holding the authoritative credential store; a print server serializing access to one printer; a game server holding the canonical match state so that all players agree on what happened. Clients may hold cached copies, but the server is the reference point for conflicts. This is what makes the pattern useful rather than merely common: centralization buys consistency, access control, and economy of scale.

Request–response as the characteristic interaction, and its limits

Most client–server interaction takes the form of a request–response exchange: the client sends a structured request (a method, a target, parameters, sometimes credentials), the server validates and processes it, and returns a response (status, data, or an error). HTTP is the familiar instance: GET /orders/42 returns a representation of that order or a 404 if it does not exist. Remote procedure calls, SQL connections, and DNS queries follow the same shape.

Two cautions keep this feature honest. First, request–response is not exclusive to client–server. A peer-to-peer protocol can also be request–response for a given message. Second, modern client–server systems often add server-initiated push (WebSocket frames, server-sent events, push notifications, long polling). Push does not dissolve the architecture: the server still governs the resource and the client still establishes and maintains the channel, but the naive claim that "the client always speaks first" becomes false at the message level. The durable distinction is who provides the service and controls the authoritative state, not who emits every packet.

A useful contrast: a message broker (publish–subscribe) decouples senders from receivers; a producer does not address a specific server for a specific answer. That is a different integration style. It can sit inside a client–server system—clients publish to a broker that servers consume from—but the broker pattern itself is not the same as direct request–response.

Centralization: data, logic, and control in one governed place

Client–server architecture typically concentrates state and business rules on the server side. Consider an online store. Product catalog and inventory live in a server-side database; pricing rules, stock reservation, and payment authorization execute on the server; the client (browser or mobile app) renders screens and collects input. If the client alone decided whether an item was in stock, two customers could buy the last unit. Server-side enforcement makes the rule single-sourced.

This centralization yields concrete benefits: one place to patch a security flaw, one audit log, one backup regime, one set of access-control policies. It also yields the classic costs: the server is a bottleneck and a single point of failure unless replicated; latency depends on the network path; and clients may be unable to work when disconnected. Those costs are not accidents—they are the price of the consistency and control that centralization buys, and they explain why offline-first designs deliberately relax server authority (for example, allowing local edits that are later reconciled, which trades immediate consistency for availability).

Centralization is a tendency, not a logical necessity. A thin client keeps almost all logic on the server (a terminal or a browser running a server-rendered app); a fat client performs substantial processing locally (a video editor that uses a server only for license checks and asset storage). Both are client–server. The split of where logic runs is a design dial, while the role asymmetry and service ownership are the structural feature.

Separation of concerns and independent evolution

Because client and server are distinct programs with a defined boundary, they can be developed, versioned, and deployed separately, often by different teams. The boundary is usually an interface contract: an HTTP API with documented endpoints and schemas, a database wire protocol, or a gRPC service definition. This separation is what allows one server to serve a web client, a mobile client, and a partner's automated client simultaneously.

The feature has a sharp edge. Separate evolution only works when the contract is managed: additive changes, versioning, and backward compatibility. A server that silently changes a field's meaning breaks clients it cannot see. This is a real distinguishing responsibility of client–server systems—interface governance—that peer-to-peer and monolithic designs do not face in the same form.

Multiplicity and scalability in the client dimension

A defining practical characteristic is the many-to-one relationship: one server (or a replicated pool presenting one service) supports many concurrent clients that are largely unaware of each other. This shape enables specific scaling strategies. Stateless request handling lets a load balancer spread clients across server replicas; session state can be externalized to a shared store so any replica can serve any client. The client population can grow without redeploying client software in the thin-client case.

Compare a monolithic desktop application: adding users means installing software on more machines, with no central scaling lever. Compare a peer-to-peer swarm: capacity comes from participants, and there is no operator-controlled server pool. The many-to-one shape, with an operator who can add capacity at the service end, is characteristic—again as a tendency, since a single client and single server is still client–server.

Concurrency and shared-state coordination

Servers routinely face concurrent requests, so client–server architecture brings coordination problems into sharp focus: race conditions on shared records, lost updates, and ordering. The server is the natural place to serialize or arbitrate—through transactions with isolation levels, optimistic concurrency checks (compare a version number before writing), or queueing. This is why "the server is the authority" is not merely a slogan: it is the mechanism by which concurrent clients are prevented from corrupting shared state. A system that lets each client write independently to a shared file without arbitration is client–server in name but has abandoned the feature that makes the pattern safe.

Trust boundaries and security posture

The network boundary between client and server is also, in most deployments, a trust boundary. Clients run on machines the operator does not control; requests arrive from unknown or hostile sources. Consequently client–server systems characteristically place authentication, authorization, input validation, and rate limiting on the server, and treat all client-supplied data as untrusted. This is a distinguishing structural feature, not an optional add-on: the server must assume the client can lie. Peer-to-peer systems face a harder version of the same problem (no trusted central arbiter), while single-machine programs have no such boundary at all.

What does not distinguish client–server architecture

Several commonly cited traits are neither necessary nor sufficient, and conflating them causes most confusion.

Physical separation of machines. Client and server roles can run on one host (a local database daemon, an in-process service). Distribution is typical, not definitional. A graphical user interface. A command-line tool querying a database is a client; a headless API consumer is a client. HTTP or the web. SQL clients, mail clients using IMAP/SMTP, and DNS resolvers are client–server without HTTP. "Thin" versus "fat." Both are compatible with the pattern. Statelessness. Stateful protocols (FTP control connections, database sessions) are client–server too; statelessness is a property of particular designs such as REST-style HTTP APIs, not of the architecture. A single centralized database. A server can be a stateless compute tier in front of a replicated store; "centralized" describes authority, not one physical box.

A concrete counterexample clarifies the boundary. Two chat applications that each run a local server and connect directly to each other's local server, with no central relay, are often described as peer-to-peer even though each side listens on a socket and answers requests. The role symmetry and absence of a shared authoritative service are what push them out of the client–server category, despite surface similarities.

Tiers, variants, and where the labels blur

The term often appears with tier counts. Two-tier describes a client talking directly to a database server; three-tier inserts an application server between client and data store so that business logic does not live in the client and the database is not exposed directly. These are refinements of the same role split, not different architectures in kind.

Thick/thin describes logic placement. Stateless versus stateful describes session handling. REST versus RPC versus messaging describes interaction style. Microservices apply the client–server idea recursively: one service is a client of another. None of these change the defining feature—asymmetric roles around a governed service—but each changes the practical consequences for latency, failure handling, and deployment.

The blurring cases are worth naming precisely. A browser fetching a static page from a CDN is client–server at the protocol level, though the "server" is a cache edge with little business logic. A serverless function behind an API gateway preserves the client–server contract while hiding the server's operational identity. A blockchain node answers queries from wallets in a request–response style, but the authoritative state is replicated across peers rather than owned by the responding node—so the client–server interaction is present while the client–server authority model is not.

A compact diagnostic

To decide whether a system is client–server in the meaningful sense, ask three questions in order. First, are roles asymmetric and stable within a session—does one side offer a service and the other request it? Second, is there a shared or authoritative resource that the service side governs, such that clients defer to it on conflicts? Third, is the boundary explicit enough that client and server can evolve separately under a managed contract? A "yes" to the first two establishes the pattern; the third describes the disciplined, networked form most people mean. A "no" to the second—symmetric peers, no authoritative arbiter—points to peer-to-peer or broker-mediated designs even if request–response messages are present.

Why the distinction matters in practice

The features are not taxonomic trivia; they predict failure modes and design obligations. Because the server is authoritative, it needs replication and backup, and its outage is visible to every client. Because clients are untrusted, the server must validate and rate-limit. Because the contract is separate, it must be versioned. Because many clients share one service, concurrency control belongs on the server. Because the client may be offline, the design must decide whether to fail, cache, or reconcile. These obligations are the practical signature of the architecture—and the reason a system that merely "has a server" but violates them tends to behave badly under load, attack, or partition.