2022-03-03-TIL

Today I Learned

DTO의 사용범위

정해진 규칙은 없지만 DTO는 컨트롤러에서 request, response의 용도로 사용하며, 서비스 계층으로 내려가는 dto의 경우 SomethingDto 정도로 네이밍 하면 좋을 것 같다. 즉, 컨트롤러에서만 사용하는 DTO와 서비스에서도 사용되는 DTO를 구분하는게 좋다.

레파지토리에서는 JPA의 경우 Entity, 다른 도구의 경우 DAO나 VO의 네이밍을 사용하면 될 것 같다. DTO를 레파지토리 계층까지 끌고가지는 말자.

  • https://slipp.net/questions/23
  • https://slipp.net/questions/93
  • https://tecoble.techcourse.co.kr/post/2021-04-25-dto-layer-scope/
  • https://os94.tistory.com/157
  • https://www.inflearn.com/questions/53023
  • https://ttl-blog.tistory.com/168
  • https://www.baeldung.com/java-dto-pattern
  • https://velog.io/@dnwlsrla40/Spring-DTO%EC%9D%98-%EC%82%AC%EC%9A%A9-%EB%B2%94%EC%9C%84%EC%97%90-%EB%8C%80%ED%95%98%EC%97%AC
  • https://coder-question-ko.com/cq-ko-blog/68014
  • https://rachel1208.tistory.com/m/15
  • https://stackoverflow.com/questions/31438286/ddd-which-layer-dto-should-be-implemented

VO, DTO, DAO, POJO

  • https://stackoverflow.com/questions/1612334/difference-between-dto-vo-pojo-javabeans
  • https://stackoverflow.com/questions/36174516/rest-api-dtos-or-not?noredirect=1&lq=1
  • https://www.quora.com/What-is-DTO-DAO-and-VO-in-Java

DTO Naming

  • https://stackoverflow.com/questions/1724774/java-data-transfer-object-naming-convention

VO vs DTO

  • https://ijbgo.tistory.com/9
  • https://www.adam-bien.com/roller/abien/entry/value_object_vs_data_transfer

DTO pros & cons

  • https://ijbgo.tistory.com/9
  • https://www.adam-bien.com/roller/abien/entry/how_evil_are_actually_data

Vue.js with Spring Boot

  • https://www.baeldung.com/spring-boot-vue-js

StackOverflow clone

  • https://meta.stackexchange.com/questions/2267/are-there-any-clones-alternatives-for-running-a-stack-exchange-style-qa-site

Hexagonal Architecture

  • https://github.com/thombergs/buckpal
  • https://github.com/Sairyss/domain-driven-hexagon
  • https://github.com/hirannor/spring-boot-hexagonal-architecture
  • https://github.com/AlicanAkkus/Modular-Architecture-Hexagonal-Demo-Project
  • https://github.com/CodelyTV/java-ddd-example
  • https://github.com/tugcekonuklar/account-service
  • https://sejoung.github.io/2021/06/2021-06-24-hexagonal/
  • https://blog.imqa.io/hexagonal-architecture/
  • https://medium.com/idealo-tech-blog/hexagonal-ports-adapters-architecture-e3617bcf00a0
  • https://medium.com/ssense-tech/hexagonal-architecture-there-are-always-two-sides-to-every-story-bc0780ed7d9c
  • https://netflixtechblog.com/ready-for-changes-with-hexagonal-architecture-b315ec967749