{"action":"opened","issue":{"url":"https://api.github.com/repos/android10/Android-CleanArchitecture/issues/45","labels_url":"https://api.github.com/repos/android10/Android-CleanArchitecture/issues/45/labels{/name}","comments_url":"https://api.github.com/repos/android10/Android-CleanArchitecture/issues/45/comments","events_url":"https://api.github.com/repos/android10/Android-CleanArchitecture/issues/45/events","html_url":"https://github.com/android10/Android-CleanArchitecture/issues/45","id":106552006,"number":45,"title":"How to deal with transactions in domain layer","user":{"login":"misrakli","id":8178020,"avatar_url":"https://avatars.githubusercontent.com/u/8178020?v=3","gravatar_id":"","url":"https://api.github.com/users/misrakli","html_url":"https://github.com/misrakli","followers_url":"https://api.github.com/users/misrakli/followers","following_url":"https://api.github.com/users/misrakli/following{/other_user}","gists_url":"https://api.github.com/users/misrakli/gists{/gist_id}","starred_url":"https://api.github.com/users/misrakli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/misrakli/subscriptions","organizations_url":"https://api.github.com/users/misrakli/orgs","repos_url":"https://api.github.com/users/misrakli/repos","events_url":"https://api.github.com/users/misrakli/events{/privacy}","received_events_url":"https://api.github.com/users/misrakli/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-09-15T13:11:45Z","updated_at":"2015-09-15T13:11:45Z","closed_at":null,"body":"I have a question about handling transactions between data and domain layer.\r\nThink about a usecase where two entities should be persisted into a local database in one transaction.\r\nShould the domain layer know something about \"transactions\" when calling into the data layer and what about \"nested transaction\"? Who is responsible to decide whether two or more operations should handled atomic as the domain layer doesn't know something about where and how the data is persisted.\r\nThank you for any advice.\r\n"}}