apisyouwonthate / apisyouwonthate/book-surviving-apis

Forcing Reloads (not a chapter)

未关闭
#6 1 条评论 0 个 reaction 已指派 1 人 已被 @mbifulco 认领 在 GitHub 查看
主要语言
Ruby
星标
30
派生
6
PR 合并指标
30 天内没有已合并 PR

描述

This should probably fit in somewhere in the book, or maybe be part of a new chapter, but the idea to mention this concept popped into my head today.

Where could we put a thing about how to update your client when important changes happen?

There is a) hot reloads, but also b) you need to log in again, and we are gonna do an actual refresh.
See image below

This example from asana is not just "you are logged out" but "there have been significant deployments so you ned a new session". Some folks do this when they get a lot of 500 errors, or of course lots of 403s, but there is often a more proactive approach with maybe a BFF or more general API having awareness of releases? I have vague memories of telling frontend devs to do this but i cannot remember qwhat we did.

For mobile users there is also "You need to update your application". This could happen if errors have a Sunset header on them for example, but what other signs are there?

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。