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

feat: like 엔티티 관련 기능 추가 #20

Merged
merged 16 commits into from
Aug 1, 2024
Merged

Conversation

seonghooni
Copy link
Collaborator

Overview

feat: like 엔티티 관련 기능 추가

변경 유형

  • 기능 추가
  • 버그 수정
  • 성능 개선
  • TC 추가
  • 기타 설정(환경 설정, CI/CD, 문서...)

수정 내용

  • LikeRedisRepository (Redis 레포지토리), LikeRepository (RDB 레포지토리) 코드 작성
    1. 좋아요 추가/취소 기능
    2. 좋아요 조회 기능 (PostId로 조회, Key로 조회, (Key,Field)로 조회)
  • LikeService 코드 작성
    1. 좋아요 추가/취소 기능
      ( '좋아요' 추가/취소에 대해 Redis에만 반영합니다. RDB로의 반영은 이후 Event-bridge를 통해 일정 주기로 이루어집니다.)
    2. 좋아요 엔티티 조회 기능
      ( Redis->RDB 순서로 '좋아요'객체를 조회한 후, 만약 있다면 true 없다면 false를 리턴합니다.)
    3. Redis에서 RDB로 반영되는 기능
      ( Key값인 postlike:{postlike}로 조회하여 RDB에 반영한 후, 반영된 데이터들은 Redis에서 삭제시켜줍니다.)
  • LikeController 코드 작성

추가로 구현해야할 기능

  • LikeCount 관련 기능

레퍼런스

@seonghooni seonghooni changed the base branch from main to dev July 30, 2024 12:18
chore: Main-Class 경로 입력

fix: SQS 및 Lambda관련 설정
@seonghooni seonghooni merged commit c3ad431 into dev Aug 1, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants