DDD: Domain Driven Design

Pataasin ang iyong marka sa homework at exams ngayon gamit ang Quizwiz!

What is a repository?

A repository is a persistence abstraction layer that sits between your business logic and your data layer.

What is an aggregate?

An aggregate is a object that contains related entities and value objects. Basically it's a composite object that contains related objects.

Where are your Repo's best placed in your App architecture?

Database -> ORM -> Repository -> Business Logic

What is an aggregate root?

It is the main object. If you are building a CSV builder system the CSV may be your aggregate root. It is comprised of value objects like write / read objects and other stuff.

How should a repository behave?

It should act as a simple in-memory store yet delegate it's persistence to the appropriate layer behind the scenes.

What is a bounded context?

The scope of responsibility and reference in which an object exists. Think of it as a namespace. You may have a Models/Customer and also a Helpers/Customer. Both have specific bounded contexts.


Kaugnay na mga set ng pag-aaral

NS2-M1C8 (World War II: The Atlantic War, 1939-1945)

View Set

AUDIT 4013 - FINAL EXAM (Ch. 11)

View Set

Testout Chapter 2 - Windows Installation 2.1.5

View Set

NCLEX Psychosocial Alterations (Mod 4)

View Set

Essay 3: 3. A sacrament can be defined as an outward sign of an invisible grace. Choose any two of the seven sacraments. For each sacrament you have chosen, answer the following questions:

View Set