Skip to content

Views - Views 모듈 구현 (api, application, driving, driven with Redis) #74

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

Open
wants to merge 16 commits into
base: main
Choose a base branch
from

Conversation

wch-os
Copy link
Member

@wch-os wch-os commented May 5, 2025

Issues

Description

  • api module

    • views 모듈에서 전반적으로 사용될 Domain을 정의합니다.
  • application

    • views 애플리케이션 요구사항을 담당하는 Usecase, 비즈니스 로직을 담당하는 Service, 데이터베이스와 연결을 담당하는 Port를 정의합니다.
  • driving

    • views web 요청을 받는 Api를 정의합니다.
  • drvien

    • views 저장을 위한 entity, repository를 정의합니다.
    • RDB 트랜잭션 관리 및 DB Lock으로 인한 디스크 접근 시간을 줄이기 위해, Redis를 사용합니다.
    • 백업 용도로 RDB(postgres)를 사용합니다.

How Has This Been Tested?

  • 조회 어뷰징 방지 검증 테스트
    • 멀티 쓰레드를 사용해 web api를 호출하여, 조회 어뷰징이 적절히 방지되고 있는지 검증합니다.
    • 로그인 유저: user_Id
    • 비로그인 유저: ip_address + user_agent

Additional Notes

마주한 에러

  • views/driven/redis 모듈에서 views/application 의존성을 추가했음에도, ViewsCacheAdapter 가 스프링 빈으로 제대로 등록이 되지 않는 문제가 발생했습니다.
Error: Caused by: java.io.FileNotFoundException: class path resource [nettee/views/port/ViewsCacheRepositoryPort.class] cannot be opened because it does not exist

@wch-os wch-os self-assigned this May 5, 2025
@wch-os wch-os added the review: ing Reviews are in progress and taking time label May 5, 2025
@merge-simpson merge-simpson added type: feature 새로운 기능 또는 기능적 개선 A new feature or enhancement in: article Issues in the article module labels May 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: article Issues in the article module review: ing Reviews are in progress and taking time type: feature 새로운 기능 또는 기능적 개선 A new feature or enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[SUB-ISSUE] Views: 모듈별 베이스 패키지 구분 [MAIN] Views 모듈 구현
3 participants