Payload and Message Design

#125 - Patterns for API Design - Daniel Luebke

Topic 5 of 11

Published Mar 20, 2023 · Clip 21:16–25:25 (4:10)

Daniel discusses the trade-off between the number of requests and message size. Returning all customers is a bad design; even searches can return too much. Mechanisms like limiting results, pagination, wish lists, and wish templates (leading to GraphQL) help control payload size. Decisions about including versus referencing data, like presenter images, depend on the use case.