Re: Responsibilities of ApplicationServices versus DomainServices
Remy Fannader <[email protected]>
| Newsgroups | gmane.comp.programming.domain-driven-design |
|---|---|
| Message-ID | <CAMdXxPDzpXHn_3Lc1chM1+TG+zVHpP1QvFyERJhDq-OR_cr_gQ@mail.gmail.com> |
It's not a heuristic but a clear-cut rule: objects whose life-cylce coincides with the life-cycle of the process that creates them are said to be transient. Objects whose life-cycle is independent of the life-cycle of the process that creates them are said to be persistent. The distinction is a business one: transient objects are not shared across processes, persistent ones are. Rémy.