Skip to content

Latest commit

 

History

History
25 lines (20 loc) · 880 Bytes

README.md

File metadata and controls

25 lines (20 loc) · 880 Bytes

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: