The Onion Architecture EXPLAINED | Should we use it?

Поделиться
HTML-код
  • Опубликовано: 27 ноя 2024

Комментарии • 22

  • @MarcoLenzo
    @MarcoLenzo  10 месяцев назад +6

    Have you ever heard about the onion architecture before? What do you think about it? 🤓

  • @olanrewajuoyewole6571
    @olanrewajuoyewole6571 10 месяцев назад +2

    Another fantastic video Marco, I really enjoyed it. Ten to fifteen minutes to explain important concepts that would otherwise take days to read through. Thanks.

    • @MarcoLenzo
      @MarcoLenzo  10 месяцев назад +1

      Thank you very much for the support! ☺️ It's truly appreciated!

  • @stillmattwest
    @stillmattwest 3 месяца назад +2

    This is a great breakdown. It would be amazing if you created a playlist where you built an example app using these principles. Subscribed.

    • @MarcoLenzo
      @MarcoLenzo  3 месяца назад

      Thank you for the suggestion 🙏
      In a later video on the hexagonal architecture ruclips.net/video/92eWCQrcsvQ/видео.html, I shared a sample repository.
      I will surely do more videos on the subject trying to give some practical examples whenever possible.

  • @moylababa8196
    @moylababa8196 10 месяцев назад +4

    great video , please make a video for "difference between onion architecture vs clean architecture vs hexagonal architecture "

    • @MarcoLenzo
      @MarcoLenzo  10 месяцев назад

      Yeah. Next one it will be most probably between the onion and clean because they are very similar. I'll mention the hexagonal as well but that deserves a video on its own!

  • @Qasinow
    @Qasinow 7 месяцев назад +1

    Thank you, very nice pace and clean! subscribed

  • @gabrielrochasantana
    @gabrielrochasantana 7 месяцев назад +1

    Thanks for the explanation. Very nice with graphics to understand.
    I speak português and I can understand in the very clearly.

  • @OK-iw5im
    @OK-iw5im 4 месяца назад +1

    amazing you id love to know the diff between onion and clear architecture

    • @MarcoLenzo
      @MarcoLenzo  4 месяца назад

      Got a video on clean and another one on hexagonal as well. If the difference is not clear let me know.

  • @marko95g
    @marko95g 7 месяцев назад +1

    if I understand, I can start implementing onion architecture without application service? but if I need it at some point in development, I can add it? right? Is it ok to call domain service from infrastructure layer even if we have application service?

    • @MarcoLenzo
      @MarcoLenzo  7 месяцев назад +1

      If you start with a very simple CRUD application, you'll be fine with Domain Services 👌
      If at some point you start managing more complex use cases where you need to co-ordinate changes on multiple groups of entities / subdomains, you will need an application service layer.
      As long as the dependencies point inward, you are fine. However, when I introduce an application services layer, I usually try not to skip it. My main fear is that you might create inconsistencies.

  • @marko95g
    @marko95g 7 месяцев назад +1

    is it possible to give us source code of the example at 7:40 ?

    • @MarcoLenzo
      @MarcoLenzo  7 месяцев назад +2

      Sure, I'll wrap a quick post on my blog and share it here.
      If you want something immediately, I have another video on Hexagonal Architecture that has a GitHub Repo associated with it. The concepts are very similar. ruclips.net/video/92eWCQrcsvQ/видео.html

  • @swiatstdio5977
    @swiatstdio5977 10 месяцев назад +3

    Good informative video, but the accent sometimes makes it hard to understand

    • @MarcoLenzo
      @MarcoLenzo  10 месяцев назад +2

      Thank you for the honest feedback. I received this comment many times. Initially, it surprised me because I've been speaking English for 20 years. Then, I realized that I got accustomed to an accent that's neither British, nor American. I wish to work on it. Maybe 2024 is the right year 🤞

    • @teceffect9826
      @teceffect9826 9 месяцев назад +1

      ​@MarcoLenzo Bro, your accent and articulation are fine. This video is one of the best on the internet.

    • @MarcoLenzo
      @MarcoLenzo  9 месяцев назад

      @@teceffect9826 Thank you Bro! 💪😁

    • @RoamingAdhocrat
      @RoamingAdhocrat Месяц назад

      I can understand Marco perfectly and easily, but English is my first language - I grew up in England - so perhaps that makes things easier for me