
Generic vs Specialized API Operations

#125 - Patterns for API Design - Daniel Luebke
Topic 6 of 11
Published Mar 20, 2023 · Clip 25:25–27:54 (2:29)
Daniel explains the interface segregation principle trade-off: GraphQL-style generic APIs let clients specify data but prevent provider optimization and can be painfully slow without proper indexes, while specialized operations allow optimization but multiply complexity. He recommends looking at anticipated use cases and, as a rule of thumb, being wary after about three specialized operations.