round trip

One journey of a request to a server and its response back, whose time adds directly to how long the caller waits.

In more detail

Each round trip costs network and processing time on top of the work itself, so fifty quick requests can take longer than one larger request. Reducing round trips is often the cheapest way to speed a program up, especially when the caller is far away.

Examples

A Kafka producer that batches records pays one round trip per batch instead of one per record.
A Server Action can mutate data and return the refreshed page in a single round trip.
Optimistic updates hide round-trip delay, and render-as-you-fetch starts requests early so they do not queue one after another.
A set-based SQL query replaces one query per row with a single round trip.

Related terms

Taught in

References

Certification courses