The 89 diagrams from Designing Cloud-Native APIs: GraphQL, in reading order. Each one renders
inline here and ships a paired .excalidraw source you can
open on excalidraw.com and edit.
Figure 0.1: The lab: verify.sh drives both stacks through lib.sh, and graphql-inspector compares each live schema with the canonical SDL.
Figure 6.1: Three stages run before any resolver. A failure in one of them ends the request with errors, no data and no source calls; only Execute reaches the sources.
Figure 6.2: Field walk for one query. Each box is a resolver call and each edge label is the parent value the child receives. Boxes 2 and 3 start together, and so do 4 and 5.
Figure 6.3: Sibling resolvers overlapping in time, drawn from the source-call log of one Quarkus run. The dashed lane shows the same two calls from blocking resolvers on one event loop.
Figure 6.4: Top-level mutation fields run serially: b starts only after a, payload included, is complete. The timing is schematic; the mutations chapter measures it.
Figure 7.2: The resolver chain for one query. The parent value feeds the child resolver, the child derives a key from it, and the key goes to a source. The two voyage lookups start together.
Figure 8.1: Two kinds of failure, two places in the response. The engine reports a malformed request in errors; the resolver reports a refused input in userErrors.
Figure 8.2: The path of one registerHandlingEvent call. Coercion belongs to the engine; validation, lookup, append and re-read run in the resolver, and a key hit skips the append.
Figure 8.3: The same retry with and without a key. With one, the second request becomes a read; without one, the store cannot tell a retry from a second event.
Figure 11.1: Three classes of change. Each example is a fixture that verify.sh runs through the gate; the strip shows how nullability flips between outputs and inputs.
Figure 13.1: The four-cargo query before batching: one call per field occurrence, 29 in all. The highlighted keys are fetched more than once in one request.
Figure 13.3: One request on the Python stack, from its source-call log. Loads queue during a tick, one bulk call follows, and the next level starts when it returns.
Figure 15.1: The APQ handshake for one document: a miss, a registration, and a hit by GET. The counts are request-body and response-body bytes measured with curl on the Quarkus instance.
Figure 17.2: The same image deployed as a public and an internal instance. Only the internal one answers a schema query, and the contract check points at it.
Figure 18.1: From a login to an identity. The server validates the token before any GraphQL runs and keeps only the identity; a token that fails exits as HTTP 401.
Figure 19.2: Three signals leave over one protocol. A caller's traceparent header puts the request in the caller's trace, and the trace id then links spans, span metrics and log records.
Figure 21.2: From a registration to a frame. The store broadcasts after it writes; each watcher takes the events of its own cargo and executes its selection for each.
Figure 21.4: Resume is a header and a store. The feed joins the broadcast before it reads the replay, so an event that arrives in between is neither lost nor sent twice.
Figure 22.2: The cache across three operations. Two requests leave the client; the second query is answered from the entry the first one wrote, and the mutation payload changes that same entry.
Figure 23.2: One load run. Accepted requests fan out into bulk source calls under their own request ids; refused requests stop at the cost check, and the log counts none of them.
Figure 24.1: One masked error, followed to the data. The trace id in the response is the key to the trace, to the log record and to the event that names the unknown location.
Figure 25.1: The compose project. The backend network is internal, so the stacks are reached only through the edge; the numbers are the start order that health conditions enforce.
Figure 25.2: One traced request and one refused request, from a run of the Python stack. The trace id the client chose survives the edge and finds the trace and the log record; the oversized body stops at the edge.
Figure 26.1: Compose concepts and the chart templates that carry them. The images, the environment contract and the edge configuration are the same in both tiers.
Figure 26.2: A request from the host to a pod and the trace back to its name. Docker publishes the port, the NodePort Service carries it to the edge, and a ClusterIP Service picks a ready pod.
Figure 27.3: One registration, heard by each subscriber under its own rights. Admission happens once, when the subscription starts; field authorization happens again on every event.