• Stars
    star
    276
  • Rank 149,319 (Top 3 %)
  • Language
    Go
  • License
    MIT License
  • Created almost 7 years ago
  • Updated about 5 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

DDD like architecture sample application

go-ddd-sample

This is sample application for like the DDD architecture.

Design

  • application
    • Write business logic
  • domain
    • Define interface
      • repository interface for infrastructure
    • Define struct
      • Entity struct that represent mapping to data model
  • infrastructure
    • Implements repository interface
    • Solves backend technical topics
      • e.x. message queue, persistence with RDB
  • interfaces
    • Write HTTP handler and middleware

References: