# Tactical Design
Part I decided *what* to build and where the boundaries go. Part II is about *how* to build
what's inside those boundaries: how to code the business logic, how to arrange a component's
internals, and how components talk to each other reliably.

5. [Chapter 5](/ch5) covers two lightweight ways to code simple logic: transaction script and active record.
6. [Chapter 6](/ch6) brings in the domain model and its building blocks (value objects, aggregates, domain events and domain services) for complex logic.
7. [Chapter 7](/ch7) adds time to the model: store every change as an event and derive state from the history.
8. [Chapter 8](/ch8) zooms out to how a component is organized: layers, ports & adapters, and CQRS.
9. [Chapter 9](/ch9) covers communication between components: translating models, publishing events reliably, and running processes that span several transactions.

Later, [Part III](/part-iii) puts the tools to work: design heuristics, evolving decisions and EventStorming.

> **Thread running through Part II:** match the tool to the complexity. Simple subdomains get
> simple patterns, and only the complex core gets the heavier machinery.

## [5. Implementing Simple Business Logic](/ch5)
- [Transaction script](/ch5#transaction-script)
- [Active record](/ch5#active-record)
- [Being pragmatic](/ch5#being-pragmatic)

## [6. Tackling Complex Business Logic](/ch6)
- [Domain model](/ch6#domain-model)
- [Value objects](/ch6#value-objects)
- [Entities and aggregates](/ch6#entities-and-aggregates)
- [Domain events](/ch6#domain-events)
- [Domain services](/ch6#domain-services)

## [7. Modeling the Dimension of Time](/ch7)
- [Event sourcing](/ch7#event-sourcing)
- [Event-sourced domain model](/ch7#event-sourced-domain-model)
- [Trade-offs](/ch7#trade-offs)

## [8. Architectural Patterns](/ch8)
- [Layered architecture](/ch8#layered-architecture)
- [Ports & adapters](/ch8#ports--adapters)
- [CQRS](/ch8#cqrs)

## [9. Communication Patterns](/ch9)
- [Model translation](/ch9#model-translation)
- [Outbox](/ch9#outbox)
- [Saga](/ch9#saga)
- [Process manager](/ch9#process-manager)
