Hexagonal Architecture

A way to isolate business logic in code

Kong To

--

Table of contents

  • History
  • Purpose
  • Principles
  • The separation of concerns
  • Three Layers
  • Inner layer isolation — dealing with dependencies
  • Ports and Adapters
  • Domain in isolation
  • Direction of flow
  • Ease of testing
  • Sample with Spring and Kotlin

--

--

Kong To

Architect, code crafter. Code quality matters. Technical writer @TheFork, a Tripadvisor company