Redian新闻
>
请问140网上这个状态啥意思啊?
avatar
请问140网上这个状态啥意思啊?# Immigration - 落地生根
f*n
1
假设
key-value store 是在内存里用作cache; database 是读写disk.
比方说现在有一个写操作:
如果先写memory成功了,然后写db的时候挂了。这样两者会不一致。
如果先写db成功了,然后写memory 挂了,这样两者又会不一致。
说白了,就是使用什么机制才能让这两个操作能一致,就是类似transaction那种效果
,要么都发生,要么都不发生。
-----
没答出来。请高人解惑。
avatar
S*n
2
EB1B pp第九天,状态刚变成如下这样,之前都是acceptance
请教有经验的童鞋,这是啥意思呢?多谢!
Initial Review
On March 1, 2013, the 15-day Premium Processing clock stopped on your I140,
IMMIGRANT PETITION FOR ALIEN WORKER. A notice was sent on this date
explaining the specific reason for stopping the premium processing of your
case. This notice will contain detailed information on further action
required by you. Your premium processing receipt notice contains contact
information for direct inquiries on your case.
avatar
l*i
3
timestamp on value, write to DB first, then memory keep reading from DB
until timestamp matched.
avatar
f*n
4
但是在memory 读到正确的version以前岂不是还是一个inconsistent的状态吗?
大牛能否展开解释一下啊

【在 l***i 的大作中提到】
: timestamp on value, write to DB first, then memory keep reading from DB
: until timestamp matched.

avatar
s*c
5
inmemory store 作为write through cache来使用:
所有的写只有当disk的db里写了log之后才修改mem store然后再返回。 memory store
crash了的话,从db里读数据重建

【在 f******n 的大作中提到】
: 假设
: key-value store 是在内存里用作cache; database 是读写disk.
: 比方说现在有一个写操作:
: 如果先写memory成功了,然后写db的时候挂了。这样两者会不一致。
: 如果先写db成功了,然后写memory 挂了,这样两者又会不一致。
: 说白了,就是使用什么机制才能让这两个操作能一致,就是类似transaction那种效果
: ,要么都发生,要么都不发生。
: -----
: 没答出来。请高人解惑。

avatar
i*s
6
这个难道不是考MVCC ? 给每个写操作,kv都有一个唯一的id,id大小表示操作先后。
读操作的id是当前已完成的最大写操作id,然后读的时候忽略所有id比它大的kv。等到
db真正写完后,更新当前已完成的最大写操作。这样读操作不用加锁,写操作当然要加
avatar
a*e
7
请问这个是什么职位
avatar
j*3
8
这是什么职位
avatar
f*n
9
software engineer
avatar
s*x
10
这个太简单了吧?always invalidate memory cache before any write, and the
write to db, you can update cache after db write or populate cache after
next read.
The key is it is always okay if the value is not available in the cache. Db
is the source of truth.

★ 发自iPhone App: ChineseWeb 8.7

【在 f******n 的大作中提到】
: 假设
: key-value store 是在内存里用作cache; database 是读写disk.
: 比方说现在有一个写操作:
: 如果先写memory成功了,然后写db的时候挂了。这样两者会不一致。
: 如果先写db成功了,然后写memory 挂了,这样两者又会不一致。
: 说白了,就是使用什么机制才能让这两个操作能一致,就是类似transaction那种效果
: ,要么都发生,要么都不发生。
: -----
: 没答出来。请高人解惑。

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。