Domain Driven Design Spring Boot Example
The simplest way to integrate spring domain events with our project is to use the spring boot data jpa starter.
Domain driven design spring boot example. A short introduction on domain driven design and value objects. An easy to understand writing style. 2018 10 11 in this project i am trying to apply principles of domain driven design. Domain driven design in a spring application the mapping of a domain concept to a ddd concept has quite a few important implications for the way these concepts are reflected in the code.
A good example would be a amount of money with a currency and a number. A sophisticated high quality case study. The book is rounded off by a chapter on implementation aspects using java with spring boot which leads to a complete implementation of the case study. Domain driven design is a very broad topic and contains lots of things that are difficult or impossible to incorporate into the code base of a sample application.
The current release version of hands on domain driven design by example offers. Spring data introduced domainevents in ingalls release train. Multi tenancy implementation using spring boot. It is also the demo project for my conference talk implementing domain driven design with the spring ecosystem.
S arp architecture a pragmatic c example not as pure a ddd approach perhaps due to its lack of a real domain problem but still a nice clean approach. I have to thank eric evans for all the inspiration ideas. Perhaps most important is communication with the domain expert iterative modelling and the discovery of a ubiquitous language. Dddps tim mccarthy s sample c app for his book net domain driven design with c.
So let s discover here a quite complete and up to date example of a spring boot application built with ddd concepts. This repository aims at showcasing a way how you could implement various aspects from domain driven design with the spring ecosystem. A sample project following domain driven design with spring data jpa c christoph knabe 2017 03 17. To work effectively with spring based java applications it s important to distinguish between that category of newables and injectables.
Go out and get his amazing book. Do not come from me personally. It s available for any kind of repository. Code samples provided for this article use spring data jpa.
In contrary to full blown ddd examples on the web i am applying here some simplifications.