liveBook · Manning

Client-server architecture

As explained in Grokking Software Architecture

A distributed architecture that separates clients that initiate requests from servers that provide resources or processing.

A client-server system splits work between two parties: the client initiates requests, and the server holds resources and fulfills them. Their network boundary replaces fast in-memory calls with communication that can face latency and failure. section 6.2 section 6.2

That boundary is the price of separation. A lightweight client can serve many users while more servers are added behind the scenes; frontend and backend teams can also work independently, as long as they agree on an API contract. section 6.2.5 section 6.2.5

Figure 6.2 The Server never speaks first. The Client must always throw the boomerang.

Use the boomerang figure to picture the request-and-response relationship: the client initiates the exchange. section 6.2.3

In scalable web architectures, the server has “amnesia”: each request must carry the context needed to process it. Like a bartender who forgets your order, the server cannot rely on remembering an earlier exchange. section 6.2.3 section 6.2.3

REST builds on client-server separation, alongside constraints such as statelessness, cacheability, and a uniform interface. The split is useful when scaling or specialization matters, but it also makes the network boundary a responsibility to manage. section 6.9.1 section 6.2

How Grokking Software Architecture covers it

How deep it goes
Defines the model and explains its network boundary, scaling rationale, and team specialization without detailing implementation internals.
Examples
Uses a dumb terminal and mainframe, a bartender with amnesia, and a million-user scaling scenario.
What you can do after
Evaluate the tradeoff between network complexity and the scaling and specialization enabled by separating clients and servers.
How it connects
Connects client-server architecture to APIs, REST, statelessness, horizontal scaling, and monolithic architecture.

Also explained in

Compare how 8 books explain client-server architecture →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Grokking Software Architecture. The section links point to the parts of the book it draws on.