We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
PostCommandService
@Service @Transactional @RequiredArgsConstructor public class PostCommandService { private final PostRepository postRepository; private final BarQueryService barQueryService; }
PostQueryService
@Service @RequiredArgsConstructor @Transactional(readOnly = true) public class PostQueryService { private final PostRepository postRepository; private final BarQueryRepository barQueryRepository; private final CustomUserDetailsService userDetailsService; private final LocationRangeService locationRangeService; }
공유할 내용, 레퍼런스, 추가로 발생할 것으로 예상되는 이슈, 스크린샷 등을 넣어 주세요.
The text was updated successfully, but these errors were encountered:
우선 좋은 글 감사힙니다!
다음과 같이 원래는 Query, Command 서비스 부분들을 퍼사드로 변경되도록 구현하였습니다!
@Service @RequiredArgsConstructor public class PostServiceGateway implements CommandService<PostCreateRequest>, QueryService { private final PostCommandService postCommandService; // 퍼사드로 private final PostQueryService postQueryService; // 퍼사드로
Sorry, something went wrong.
pbg0205
zbqmgldjfh
No branches or pull requests
🙋🏻♂️ 제안 사항
Facade 계층을 하나 추가하는 방법에 대해 고민
패서드 패턴?
(의존성 전이 : 다른 객체에 변경이 있을 때, 변경이 전파되는 것. 그렇기 떄문에 의존성을 최소화해야 한다.)
패서드 패턴의 장점
현재 Service 레이어간 참조를 하고 있는 위치
PostCommandService
PostQueryService
📖 참고 사항
공유할 내용, 레퍼런스, 추가로 발생할 것으로 예상되는 이슈, 스크린샷 등을 넣어 주세요.
The text was updated successfully, but these errors were encountered: