menu
{ "item_title" : "Hexagonal Architecture in Go", "item_author" : [" Gabriel Anhaia "], "item_description" : "Your Go service's business logic should have zero knowledge of HTTP, databases, or message queues - and Go's implicit interfaces make this not just possible, but natural.Most hexagonal architecture content comes from the Java world - full of dependency injection frameworks, abstract factories, and patterns that don't translate to Go. This book is different. It teaches hexagonal architecture the Go way: with implicit interfaces, plain constructors, and a main() function as the composition root. No frameworks. No magic. Just Go.In 22 chapters across 5 parts, you'll:See why Go services become unmaintainable - and the one architectural rule that prevents itMaster the core concepts: domain, ports, adapters, and the dependency ruleBuild a complete order processing service from scratch with tested, production-ready codeTest every layer: domain in microseconds, adapters with doubles, integration through HTTPHandle errors across boundaries, transactions without leaking SQL, and event-driven adaptersAdd logging, metrics, and tracing via decorators - the domain stays pureKnow when hexagonal architecture is overkill and how to migrate existing services incrementallyEvery code example is tested and available in a public companion repository. Every chapter builds on the last. Every pattern is grounded in real Go, not theory.Written by a senior software engineer who builds Go services every day at a Berlin-based tech company. If you can write Go but struggle with organizing larger services, this book is for you.Companion code: github.com/gabrielanhaia/hexagonal-go-examplesThis is the 2026 revised & updated edition - the print layout has been corrected and the content improved throughout.", "item_img_path" : "https://covers1.booksamillion.com/covers/bam/9/79/825/574/9798255744688_b.jpg", "price_data" : { "retail_price" : "34.99", "online_price" : "34.99", "our_price" : "34.99", "club_price" : "34.99", "savings_pct" : "0", "savings_amt" : "0.00", "club_savings_pct" : "0", "club_savings_amt" : "0.00", "discount_pct" : "10", "store_price" : "" } }
Hexagonal Architecture in Go|Gabriel Anhaia

Hexagonal Architecture in Go : Ports, Adapters, and Services That Last

local_shippingShip to Me
In Stock.
FREE Shipping for Club Members help

Overview

Your Go service's business logic should have zero knowledge of HTTP, databases, or message queues - and Go's implicit interfaces make this not just possible, but natural.

Most hexagonal architecture content comes from the Java world - full of dependency injection frameworks, abstract factories, and patterns that don't translate to Go. This book is different. It teaches hexagonal architecture the Go way: with implicit interfaces, plain constructors, and a main() function as the composition root. No frameworks. No magic. Just Go.

In 22 chapters across 5 parts, you'll:

  • See why Go services become unmaintainable - and the one architectural rule that prevents it
  • Master the core concepts: domain, ports, adapters, and the dependency rule
  • Build a complete order processing service from scratch with tested, production-ready code
  • Test every layer: domain in microseconds, adapters with doubles, integration through HTTP
  • Handle errors across boundaries, transactions without leaking SQL, and event-driven adapters
  • Add logging, metrics, and tracing via decorators - the domain stays pure
  • Know when hexagonal architecture is overkill and how to migrate existing services incrementally

Every code example is tested and available in a public companion repository. Every chapter builds on the last. Every pattern is grounded in real Go, not theory.

Written by a senior software engineer who builds Go services every day at a Berlin-based tech company. If you can write Go but struggle with organizing larger services, this book is for you.

Companion code: github.com/gabrielanhaia/hexagonal-go-examples
This is the 2026 revised & updated edition - the print layout has been corrected and the content improved throughout.

This item is Non-Returnable

Details

  • ISBN-13: 9798255744688
  • ISBN-10: 9798255744688
  • Publisher: Independently Published
  • Publish Date: April 2026
  • Dimensions: 9 x 6 x 0.65 inches
  • Shipping Weight: 0.91 pounds
  • Page Count: 308

Related Categories

You May Also Like...

    1

BAM Customer Reviews