API Design Patterns

JJ Geewax

出版时间

2020-06-04

ISBN

9781617295850

评分

★★★★★
书籍介绍
这是一本把 Google 内部 API 设计规范公开成书的实践指南,作者 JJ Geewax 是 Google 的软件工程师。全书以一套可复用的设计模式为核心,每个模式都配一个真实 API 示例、适用场景以及边界情况的处理方式,强调让 API 在变化中保持灵活、便于客户端接入。读者反馈普遍认为它“深入浅出、极具可操作性”,是撰写 design doc 时“Alternatives considered”一节不可或缺的参考。书中对 offset+limit 翻页、字段掩码、Singleton 子资源等常见问题的剖析,让不少多年开发者感到“知识被刷新”。它适合需要设计或评审内部及公开 API 的工程与架构师,但也有人指出部分模式(如 custom method)尚非事实标准,阅读时需自行辨别。
作者简介
JJ Geewax is a software engineer at Google, focusing on Google Cloud Platform and API design. He is also the author of Google Cloud Platform in Action.
精彩摘录
  • "As fun as it might be to design and specify a complete language for filtering resources, that might be getting a bit too far outside the scope of this book. In fact, there are quite a few language specifications out there that accomplish this goal, such as Common Expression Language (CEL; https://gi"
用户评论
这是目前讲api规范讲的最好的一本书了吧,深入浅出,而且极具可操作性!
下载
收藏