ct-study / designing-data-intensive-applications

2 stars 0 forks source link

[6주차] Mongodb Write Concern, Read Concern, Casual Consistency #37

Open xogml123 opened 10 months ago

xogml123 commented 10 months ago

Read Concern:읽을 때 Replica를 읽는 조건 얼마만큼 복제가 완료 된후 성공을 return할지

https://www.mongodb.com/docs/manual/reference/read-concern/

Write Concern:쓸 때 얼마만큼 복제가 완료 된후 성공을 return할지

Casual Consistency: timestamp를 기준으로 하나의 세션에서 쓰기에 대한 복제가 원하는 수준까지 완료된 후 읽음. image

image

default

5.0 이전 writes: 1 5.0 이후 writes: majority

gilteunchoi commented 10 months ago