Giter Site home page Giter Site logo

nestjs_prac's Introduction

hexagonal_architecture_example_Nest.js

hexagonal architecture에 대한 설명 -> <링크>

설명

  • Nest 환경에서 hexagonal architecture 구현

  • 도메인(기능? 여기서는 board) 별로 adapters, domain으로 나눠서 구현

  • 비즈니스 로직은 service layer에 있고, 데이터베이스 쿼리들은 repository에 있음. (위에 있는 사진이랑 좀 다르게 구현. 사진은 서비스를 포트로 사용하는 것 처럼 보이는데 실제로는 interface 구현해서 포트로 사용하고 서비스 계층은 중간 어플리 케이션에 넣음)

  • 그런데 사실 헥사고날 아키텍처를 쓰는게 이점이 있는지 모르겠음.

  • 만약 만드는 서비스가 매우 많은 트래픽이 나오고 있고 더 성장 할 가능성이 충분하다고 판단되면 써도 될 것 같지만,

  • 그냥 처음부터 뭔가 정해놓고 하는건 허들도 높고 오버 엔지니어링 이라고 생각함

nestjs_prac's People

Contributors

jooyoung2274 avatar joo2274 avatar

Stargazers

Pretty Han avatar  avatar youngtak avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.