知识卡片
库存额度让分区独立服务
完整系统副本可按用户分区运行,尽量不在每次请求时互相同步。共享库存可由主库存给每区分配一批已预留额度,区内从自身额度销售,耗尽时再申请,必要时从其他区取回剩余额度。它把每次售卖的共享协调改为低频配额补充;正确性依赖额度真正预留及转移一致,不能当成各区随意复制库存数字。
这张卡片看不懂?
这张卡片的反馈已满 10 条,暂时无法继续提交。
已有反馈 · 0 / 10 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- 高可用与扩展 · 查看原书依据
To handle inventory, we need to keep a primary inventory database, and each partition’s inventory gets a block of items from the primary inventory, thus serving the users from the block of items (using a cache with reservation). If a partition inventory is out of items, it gets a new block, and if the primary inventory is out of items, it gets a block from other partitions (we call this work stealing).
参考来源
- 位置:《Software Architecture and Decision-Making》第09章《高可用与扩展》(来源项目:book-sources;源文件:extracted/Software Architecture and Decision-Making Leveraging Leadership, Technology, and Product Management to Build Great Products… (Srinath Perera)/_epub-src/ch09.xhtml)
- 结论依据:所引连续原文给出本卡机制或取舍;条件与示例结合本节已读上下文解释。
- 原始内容:To handle inventory, we need to keep a primary inventory database, and each partition’s inventory gets a block of items from the primary inventory, thus serving the users from the block of items (using a cache with reservation). If a partition inventory is out of items, it gets a new block, and if the primary inventory is out of items, it gets a block from other partitions (we call this work stealing).