3pigs-ddd icon indicating copy to clipboard operation
3pigs-ddd copied to clipboard

Introduce "Red Hood" module with more pragmatic approach

Open mat3e opened this issue 2 years ago • 0 comments

  • Instead of multiple modules - just a single module and a better encapsulation with more package-private access
  • DB mappings directly in models
  • Tests without Spring Context - unit tests with unit being a whole package (tested through public APIs - command & query)

Thanks to the second example, monolith module took a little more responsibility - configures production DB and event processing (should take care of all infra things like that).

mat3e avatar Nov 17 '22 23:11 mat3e