---
title: "AJ Phạm (@ajpham) | Hashnode"
description: "Software engineer. Read the latest articles by AJ Phạm on Hashnode."
url: "https://hashnode.com/@ajpham"
---

@ajpham

# AJ Phạm

@ajpham · Ho Chi Minh city, Viet Nam · Joined June 2023

Software engineer

## Comments

[Nice](https://hashnode.com/posts/hexagonal-architecture-with-golang-part-1/64ab96b38bc25ed0d09f9838/comment/64cb1a3b38b248b9c360a31c#reply-64cb1d3538b248b9c360a369)

Reply · Article · Aug 3, 2023 · [Hexagonal architecture with Golang (part 1)](https://hashnode.com/posts/hexagonal-architecture-with-golang-part-1/64ab96b38bc25ed0d09f9838)

[Sure, I can provide some special difference between them: Purpose: Hexagonal: isolation of the core business logic from external component (framework, external technical, ...). Layer: Organizes the application into horizontal layers, each with specific responsibilities. Dependency Direction: Hexagonal: Core application is at the center and independent of external systems. Adapters depend on the core through interfaces (ports). Layer: Dependency from higher to lower layers. Flexibility: Hexagonal: easy swapping of adapters. Changes in external systems can be accommodated without modifying the core logic. Layer: it is also flexibility but changes may involve modifying multiple layers due to tighter coupling between layers. Testability: Hexagonal: High testability, as the core application can be tested independently using mock or fake implementations of interfaces. Layer: Supports testability, but may have less isolation between components within the same layer, making unit testing more challenging.](https://hashnode.com/posts/hexagonal-architecture-with-golang-part-2/64c86daa414741728981b3fb/comment/64c8f378e11157a514125c88#reply-64c90a70e11157a514125f38)

Reply · Article · Aug 1, 2023 · [Hexagonal architecture with Golang (part 2)](https://hashnode.com/posts/hexagonal-architecture-with-golang-part-2/64c86daa414741728981b3fb)
