embedding

Including a small copy of a related resource inside a representation, instead of only linking to it.

In more detail

Embedding saves a round trip when a client always needs small, stable related data. It creates a consistency question when the related data changes, and done carelessly it can hide an N+1 query, so link to large, private or fast-changing data instead.

Related terms

Taught in

References