nahud blog

  • 홈
  • 태그
  • 방명록

dynamicroutingdatasource 1

쓰기, 읽기 전용 Multiple DataSource 설정하기

들어가며소스코드는 깃허브에서 확인가능합니다.기본세팅우선 Write, Read 데이터베이스가 필요합니다. 해당 게시글을 통해 간단하게 Write, Read 전용 데이터 베이스를 설정할 수 있습니다. application.propertieswrite, read 데이터베이스를 각각 지정합니다. 실제 운영환경에서는 RDS 레플리케이션을 통해 복제된 데이터베이스의 호스트 등이 될 수 있습니다.spring.datasource.hikari.write.jdbc-url=jdbc:mysql://localhost:33061/mydb?createDatabaseIfNotExist=truespring.datasource.hikari.write.username=mydb_userspring.datasource.hikari.write..

Spring 2024.06.04
이전
1
다음
더보기
프로필사진

Small steps make big change

  • 분류 전체보기 (20)
    • Spring (6)
    • Programming (7)
    • 트러블슈팅 (2)
    • 프로젝트 (5)

Tag

OOM, 오늘또일을미루고말았다, kotlin, Redis, java21, multipledatasource, webflux, 객체지향5원칙, sheldlock, standardmanager, virtual thread, 넥스트스텝, session, 집계테이블, spring, dynamicroutingdatasource, cache-aside, iplimit, session storage, value class,

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

페이스북 트위터 플러그인

  • Github

Archives

방문자수Total

  • Today :
  • Yesterday :

Copyright © AXZ Corp. All rights reserved.

티스토리툴바