9 Matching Annotations
- Sep 2024
-
www.youtube.com www.youtube.com
-
GLP-1 as idea for the Wolf/Bear cross in my Fiction Worldbuilding...
Makes creatures more resilient to food scarcity (might even be useful for the scarcity in summer due to fire rains).
( ~4:55)
-
- Jun 2023
-
-
- see 07:30 for a goosebumps scene where Thorfinn is getting punched 100 times "I have no enemies" — Thorfinn
-
- Apr 2020
-
-
When a React component dispatches actions, how can another service catch the actions, accumulate and group them, then redispatch a single action?
Catching actions to accumulate and group them
-
- Jul 2019
- Jan 2019
-
react-china.org react-china.org
-
这样可以方便的进行单元测试,不需要模拟Api.fetch函数的具体返回结果。
非模拟时,由redux-saga内部的调度器帮我们执行 next(在异步函数或副作用函数执行获得结果后);
模拟时,由测试函数自己根据需要执行 next,所以说无需模拟 Api.fetch 函数的具体返回结果,从而为测试带来了方便
Tags
Annotators
URL
-
-
juejin.im juejin.im
-
要注意的是,在saga模式中不能保证隔离性,因为没有锁住资源,其他事务依然可以覆盖或者影响当前事务。
因为saga没有tcc的try阶段,try阶段要做的一件事就是锁住资源
-
T1, T2, ..., Tj(失败), Tj(重试),..., Tn
向后恢复:出错则撤销;
向前恢复:出错则重试。
Tags
Annotators
URL
-
- Jul 2017
-
vasters.com vasters.comSagas2
-
a state machine or workflow. Trouble is, that's not what a Saga is. A Saga is a failure management pattern.
Failure Management Pattern: good summary,
-
Sagas come out of the realization that particularly long-lived transactions (originally even just inside databases), but also far distributed transactions across location and/or trust boundaries can't eaily be handled using the classic ACID model with 2-Phase commit and holding locks for the duration of the work. Instead, a Saga splits work into individual transactions whose effects can be, somehow, reversed after work has been performed and commited.
focus on long-lived, far distributed transactions
-