用获取 V2EX 上一个帖子的 API 来做例子:
http 1 : API 应该返回一个大 object ,包含 title, description 以及全部 reply body 和 profile body 。
http/2 : API 可以返回一个相对比较小的 object, 包含 title, description 以及 reply 和 profile 的 id list 。再根据这两个 id list 来进行(可能两百来次的)的 fetch 。
考虑到后者可以在前端缓存 profile ,那是不是意味着拆解 REST API 是更合理的方案呢?