Open hyoseok0 opened 2 years ago
w:majority, j: true
ReactiveMongoDatabaseFactory
MongoDatabaseFactory
write concern
majority
w:1
j: true
write concern 이 w:1. j:true 일 때의 write 후 read
w:1. j:true
write concern 이 w:majority, j:true 일 때의 write 후 read
w:majority, j:true
개괄
문제 상황
예시
원인
해결
해결 상세
w:majority, j: true
로 설정w:majority, j: true
한ReactiveMongoDatabaseFactory
,MongoDatabaseFactory
bean 추가해서 사용w:majority, j: true
로 설정 시, consistency 가 증가하지만, write 응답이 느려짐상세
원인
write 이후 read 시, write 한 데이터를 조회하려면 mongoDB connect 설정이 아래와 같아야 함
현재 shopping-server 설정은 아래와 같고,
write concern
조건이 맞지 않습니다.참고) 상태값 설명
majority
w:1
,j: true
majority
,j: true
원인 상세
write concern 이
w:1. j:true
일 때의 write 후 readwrite concern 이
w:majority, j:true
일 때의 write 후 read해결
write 이후 read 시, write 한 데이터를 조회하려면 mongoDB connect 설정이 아래와 같이 설정
해결 상세
w:majority, j: true
로 설정w:majority, j: true
한ReactiveMongoDatabaseFactory
,MongoDatabaseFactory
bean 추가해서 사용w:majority, j: true
로 설정 시, consistency 가 증가하지만, write 응답이 느려짐참고자료