Exposure · demo 23

REST, GraphQL, gRPC: one screen, three ways

The same home screen (Alice, her three accounts, their last operations) loaded by three clients. Same data, same result: what changes is the number of round trips and the weight of what travels.

Reduced motion: the scene is paused; use "Step" or "Play".

    What to watch

    • REST chains three waves: it needs the customer to know her accounts, and the accounts to ask for their operations. Five requests, 2,014 bytes received.
    • GraphQL sends its query (207 bytes, sent again on every call) and gets exactly the fields it asked for: 876 bytes. gRPC calls a method of the .proto contract: 14 bytes sent, 393 received, in binary.
    • Raise the latency: every round trip costs more, and REST pays it three times. The figures at 50 ms are those of the demo's real run (178, 60 and 63 ms).