知识卡片
会话状态会限制副本替换
应用状态描述特定客户端与应用交互的上下文,如会话;资源状态描述服务中业务资源的当前值。若会话仅在一台实例,用户后续请求就依赖该实例亲和,销毁或替换更困难。把状态类别分开有助于判断该外置什么,但资源状态同样需要一致性和恢复设计。
这张卡片看不懂?
这张卡片的反馈已满 10 条,暂时无法继续提交。
已有反馈 · 0 / 10 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- Building a Cloud Native Service · 查看原书依据
First it’s important to draw a distinction between application state and resource state. These are very different things, but they’re easily confused. Application state Server-side data about the application or how it’s being used by a client. A common example is client session tracking, such as to associate them with their access credentials or some
参考来源
- 位置:《Cloud Native Go》第05章《Building a Cloud Native Service》(来源项目book-sources;源文件:extracted/Cloud Native Go (Matthew A. Titmus)/_epub-src/OEBPS/ch05.xhtml)
- 结论依据:应用状态描述特定客户端与应用交互的上下文,如会话;资源状态描述服务中业务资源的当前值。原文相应定义、示例或限制为此结论提供依据;补充纠错与版本边界在正文就近标明。
- 原始内容:First it’s important to draw a distinction between application state and resource state. These are very different things, but they’re easily confused. Application state Server-side data about the application or how it’s being used by a client. A common example is client session tracking, such as to associate them with their access credentials or some