-
Notifications
You must be signed in to change notification settings - Fork 49
FEAT: Add set/get replica methods to distribute read traffic for hot … #1027
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
ba1df34 to
424b27b
Compare
424b27b to
f4bf59c
Compare
|
|
|
arcus-java-client가 먼저 릴리즈된 후에 arcus-spring 작업을 시작해도 어색하지 않을 것 같습니다. |
oliviarla
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
전체적인 틀은 approve 상태이고, 자잘한 구현 관점의 피드백입니다.
03ce5a2 to
94b8eee
Compare
94b8eee to
a47db1a
Compare
|
리뷰가 다 반영되었다면 재리뷰 요청해주세요. |
|
@oliviarla |
jhpark816
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
리뷰 완료
10c8bc2 to
775facc
Compare
c7741cb to
fdb2dc7
Compare
oliviarla
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
최종 리뷰입니다.
fdb2dc7 to
85066d1
Compare
…items
🔗 Related Issue
⌨️ What I did
특정 hot item의 읽기 트래픽을 여러 노드들로 분산시킬 수 있도록 Replica 기능을 구현합니다.
원본 키를 여러 복제키로 변환하여 무작위의 노드에 동일한 데이터를 분산시킵니다.
setReplicas): 지정된 갯수만큼 복제 키를 생성하고, 이를 여러 노드에 무작위로 분산시켜 저장합니다.getFromReplica): 복제키들 중 하나를 랜덤하게 선택하여 조회합니다.asyncGetFromReplica(): 비동기로 랜덤한 복제 키를 조회getFromReplica(): 조회 성공까지 랜덤한 순서로 동기조회ArcusClientReplicaTestsetReplicas()가 지정된 개수만큼 저장이 성공적으로 수행되는지 확인getFromReplica()를 통해 저장된 값을 읽어오는지 확인해당 PR이 머지됨에 따라
arcus-spring에도 replica 관련 메서드 적용한 PR올리도록 하겠습니다.