Design Accelerator: Ports and Adapters Architecture Part 1

แชร์
ฝัง
  • เผยแพร่เมื่อ 23 ธ.ค. 2024

ความคิดเห็น • 12

  • @KubaCodes
    @KubaCodes 2 หลายเดือนก่อน +7

    Even for someone familiar with the architecture this was very engaging and enjoyable to watch. Waiting for more!

  • @BlindVirtuoso
    @BlindVirtuoso 2 หลายเดือนก่อน +2

    Nice one. Appreciate it. Thanks, Vaughn

  • @maikwiesmueller
    @maikwiesmueller 2 หลายเดือนก่อน

    Just the best explanation on hexagonal I've seen so far.
    Would add that this also benefits testability.

    • @niclash
      @niclash 2 หลายเดือนก่อน +1

      My guess is that Vaughn will add these in coming episodes.

  • @mustaphab32
    @mustaphab32 2 หลายเดือนก่อน +2

    Thanks Vaughn, but i really wonder, how is something new compared to the classic: “depend on the interface, not the implementation” ?

    • @jimhumelsine9187
      @jimhumelsine9187 2 หลายเดือนก่อน +1

      "Program to an interface, not an implementation" is related, but I see a distinction.
      The interface/implementation principle is one of the two design principles of Design Patterns.
      It is realized in several design patterns, such as Strategy, Template Method, Façade and to some degree Adapter.
      I view Hexagonal Architecture/Ports&Adapters as pattern of these patterns that pulls them together into a cohesive design.
      I have blogged about this, and I have my own HexArch/P&A video presentation online, but I am reluctant to post any links here. Every time I post a comment with links, it get's removed by TH-cam. I suspect it's trying to avoid self promotion.

    • @VaughnVernon
      @VaughnVernon  หลายเดือนก่อน +1

      It's the separation of outside and inside and the responsibilities that should be separated. You could implement interfaces and still have confused responsibilities.

  • @WalterVos
    @WalterVos หลายเดือนก่อน

    Was already yelling at my TV thinking somebody would explain P&A wrong AGAIN when you said "the port receives an HTTP request" 😂

    • @VaughnVernon
      @VaughnVernon  หลายเดือนก่อน

      Hope you didn't stop there 😊

    • @WalterVos
      @WalterVos หลายเดือนก่อน

      You introduced the adapter just in time 😉. I like your style here, it's actually an emergent (description of a) design. My only critique would be that outside circle: Alistair always emphasizes that P
      P&A has no layering (although I can definitely understand why people view it that way). An example that shows this is when your test suite is calling the port. The test suite is an actor that needs no adapter, and so your outside circle would be empty

  • @KaleleInfo
    @KaleleInfo 2 หลายเดือนก่อน

    Nice!

  • @KaleleInfo
    @KaleleInfo 2 หลายเดือนก่อน

    Nice!