Название: Surviving Other People's APIs Автор: Phil Sturgeon, Mike Bifulco Издательство: Leanpub Год: 2023-04-17 Страниц: 173 Язык: английский Формат: pdf (true), epub Размер: 15.9 MB
"Just pull that from the API" they said. "It'll be easy!" they said.
How can you build the best web/mobile/client-side application, when the APIs you need to work with are poorly documented, struggle with sketchy performance, or generally make you feel like you're on a dangerous expidition into an ancient tomb, with hidden booby traps, doors operated by archaic runes, where one wrong move triggers swinging battering rambs to wreck your day into a wall of spikes.
This whole premise of an API client-server relationship is inherently fraught with danger, because going over the network for anything can lead to unexpected errors, unexpected change, connection problems... hell a rat could have chewed through a cable. This book aims to help you not just react to these problems, but ideally prempt them and build an application that laughs in the face of danger.
Just like with Build APIs You Won’t Hate, this book will take a non-academic, easy-to-read approach to some pretty complex topics around HTTP interactions, versioning, client-caching, state management, differences between how you interact with RPC, REST and GraphQL, using JSON Schema for local validation, and all sorts of other awesome stuff that nobody ever bothered to mention to you.