You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
스낵게임의 랭킹 시스템은 집계 객체(혹은 테이블)로 운영된다. (그 이유는 이곳을 참고할 수 있다)
그러나 현재 집계 객체의 생성, 갱신 과정에 동시성 문제가 있다.
상황에 따라 2개 이상의 집계 객체가 생성되거나 'Second Lost Update' 문제가 발생할 수 있다.
비즈니스 정책부터, DB 격리 수준, 락킹 메커니즘까지 여러 선택지를 고려해 이 문제를 해결해보자.