Where do you usually implement transaction logic in domain design?

  • In the consumer code? (e.g. controller)
  • In the repositories?
  • In the services?
+3
source share
1 answer

For starters, this is a pretty moot point, so you should get a lot of different answers.

My own business is that transactions (ACIDs) are a function of certain storage mechanisms (primarily relational databases), so I’m looking at a technology-specific concept. Before anyone protests that this is only a theoretical argument, consider a few possible cases where the data store (Warehouse) will not be transactional:

  • (, Amazon) . ,
  • REST

, , . , , , , , .

, ( ).


, , , , () .

+3

Source: https://habr.com/ru/post/1724658/


All Articles