1
2 Comments

Guide to Hexagonal Architecture

Hexagonal Architecture is a software architecture that centers around the idea to isolate the core business of an application and separate out input and outputs to a system.

In this article I explain three topics

  • Problems in Designing applications
  • Main Principles
  • Components of Hexagonal Architecture

I also explain how to use this in real-world with a example of payment application.

📚 Read: mohitkhare.com/blog/hexagonal-architecture

Do share it with your community. Hope you learnt something new!

posted to Icon for group Developers
Developers
on December 15, 2020
  1. 1

    This could be a stupid question, but it seems like only four aspects/sides of the hexagon have concepts attached. Was hexagonal just cooler sounding?

    1. 1

      Hey, so in the example I shared I tried to keep it simple. The main idea behind hexagonal is to not have more than 3-4 ports on input/server side. Else it would defy the purpose if you have new port for each entity.

      Hope this clears the doubt.

Trending on Indie Hackers
I've been reading 50 indie builder posts a day for the past month. Here's the pattern nobody talks about. User Avatar 159 comments I shipped 3 features this weekend based entirely on community feedback. Here's what I built and why. User Avatar 126 comments Finally reached 100 users in just 12 days 🚀 User Avatar 118 comments I'm a lawyer who launched an AI contract tool on Product Hunt today — here's what building it as a non-technical founder actually felt like User Avatar 96 comments I realized showing problems isn’t enough — so I built this User Avatar 32 comments Maintaining open-source projects that millions use User Avatar 27 comments