Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
#️⃣ 연관된 이슈
📝 작업 내용
더 자세한 것은 주말내로 블로깅을 할 예정인데, 간단하게 말하면
routingDataSource
메소드에서 삽입해줍니다. 그러면 datasource등록이 끝납니다.determineCurrentLookupKey
에서 판단하여 빈으로 등록하여 datasource등록한 master/slave를 찾아 이를 사용하는 방식입니다.큰 걱정
replication을 한다면 db 복제 -> master/slave 연결 과정을 거쳐야 합니다. 다만 db 복제 와 연결 과정 사이에 새로운 db가 들어간다면 replicate db, master db 간 정합도가 깨질 수도 있습니다. 이 과정을 어떻게 해결하면 좋을지 걱정되네요 흠..
💬 리뷰 요구사항