Domain Layer Organization Flashcards

(15 cards)

1
Q

What is a transaction script, and how does it work?

A

The simplest domain logic pattern
1- It receives the input parameters
2- Processes them
3- Stores/retrieves info from the database
4- Invokes operations on other systems
5- Responds with data to the presentation layer

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the disadvantage of a transaction script?

A

Too simple for complex domain logic

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are the advantages of a transaction script?

A

1- Simple procedural model
2- Works well with simple data
3- Transaction limits are obvious

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is a domain model?

A

A pattern that is based on the use of objects

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is the advantage of a domain model?

A

Suitable for complex domains

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is the disadvantage of a domain model?

A

The more complex the domain, the more difficult it is to map it to a relational database

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is a table model?

A

It manages data operations on a database using modules. Each table module handles business logic for a single table. It works with record sets (results of a DB query)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is a table model used for?

A

Moderate complexity (especially with relational DBs)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Pros of a table model

A

1- More structured than a transaction script
2- Easier to maintain

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Cons of a table model

A

1- No inheritance or OO features (less flexible than a domain model)
2- Not ideal for very complex logic

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What are the main kinds of remote interfaces?

A

1- HTTP interface
2- OO interface

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Advantages of HTTP interface

A

1- Almost universal
2- Easier deployment

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Disadvantage of HTTP interface

A

1- Less explicit specification (harder to define the interface without additional tools)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Advantage of OO interface

A

Explicit interface specification (well defined interface)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Disadvantage of OO interface

A

Complex deployment

How well did you know this?
1
Not at all
2
3
4
5
Perfectly