-
Notifications
You must be signed in to change notification settings - Fork 16
Home
Alexandre Simões edited this page Feb 20, 2020
·
2 revisions
Here is a brief summary of how the example was implemented. This sample application is a simulation of buying stocks and selling stocks. A transaction record is generated for each stock bought or sold, the average purchase price and the total amount are recalculated.
The Domain Layer follows the Domain Driven Design standard and we use an event sourcing implementation to generate events.
- The application uses a repository infrastructure with SQL relational database and a non-relational MongoDB database.
- Publication infrastructure for events generated by the domain.
- Infrastructure to record transactions in the non-relational database.
The Application layer is organized in Use cases, ports and adapters so that we can use the code language as close as possible to the User.
The api is using .netcore with mediator and presenters;