Skip to content

sandokandias/spring-boot-ddd

Repository files navigation

Awesome Spring Boot app with domain driven design(DDD).

Layers

Interfaces

How you can deliver your software.
e.g.: Rest Controllers, Raw Servlets, Swing Views.
Implementation example: PaymentController

Application

Where your use cases are orchestrated and the transactional scopes are managed.
e.g.: Payment process.
Implementation example: PaymentProcessManager (Interface) / PaymentProcessManagerImpl (protected Impl)

Domain

Where your business rules are handled.
e.g.: Payment process: (request payment, authorize payment, confirm payment, cancel payment, etc).
Implementation example: Payment (AggregateRoot)

Infrastructure

This layer acts as a supporting library for all the other layers.
e.g.: SQL Tables representation, SQL Repositories implementation, i18n, serialization, validators, etc.
Implementation example:

  • Persistence package
  • i18n package
  • Serialization package
  • Validation package

About

Spring boot with domain driven design

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages