Designing API Messages and Payloads

[Best of 2023] #125 - Patterns for API Design - Daniel Luebke

Topic 4 of 4

Published Jan 4, 2024 · Clip 12:11–16:30 (4:19)

The guest explains that the most important payload considerations are the number of requests and the size of message payloads. Returning all records at once overloads the provider and the network, so mechanisms like limiting results, pagination, and referencing data via links instead of embedding it are needed. He describes patterns like wish list and wish template for specifying which data a client needs, which approach the concept behind GraphQL, and stresses that most developers dump everything into responses until scaling problems appear.