Skip to content
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

[BE] Redis 도입 #401

Open
4 tasks done
bugoverdose opened this issue Sep 30, 2022 · 0 comments · May be fixed by #402
Open
4 tasks done

[BE] Redis 도입 #401

bugoverdose opened this issue Sep 30, 2022 · 0 comments · May be fixed by #402
Assignees

Comments

@bugoverdose
Copy link
Collaborator

bugoverdose commented Sep 30, 2022

배경

RefreshToken 구현을 위한 사전 작업으로 레디스를 셋업한다.

진행사항

  • build.gradle에 필요한 의존성을 추가한다.
  • 로컬 환경 및 테스트에서는 레디스에 연동되도록 EmbeddedRedis를 구동한다.
  • 읽지 않은 알람 개수에 대한 count 로직 결과를 캐쉬로 관리하는 로직을 시험적으로 도입한다.
    • 부하테스트로 이로 인한 성능 개선 및 저하 수준을 확인하고, 문제가 있는 경우 롤백한다.
  • 인프라 셋업
    • 별도의 EC2 인스턴스에 redis를 설치하여 dev 서버에서 연동시킨다. (비밀번호 설정)
    • 별도의 EC2 인스턴스에 redis를 설치하여 prod 서버에서 연동시킨다. (비밀번호 설정)

공유사항

RDBMS 작업을 수행하는 트랜잭션 내부에서 레디스 작업을 수행하는 것이 옳은지 의문입니다.
레디스는 트랜잭션의 영향을 받지 않으므로, 레디스의 데이터를 변경하는 작업의 경우 트랜잭션이 커밋된 이후에 레디스에 접근하도록 설계하는게 이상적으로 보입니다.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant