Assessments

Chapter 1, Why Hexagonal Architecture?

Question 1

What are the three hexagons that comprise the hexagonal architecture?

Answer

Domain, Application, and Framework.

Question 2

What's the role of the Domain hexagon?

Answer

It provides the business rules and data in the form of entities, value objects, and any other suitable categories of objects that help model the problem domain. It does not depend on any other hexagon above it.

Question 3

When should we utilize use cases?

Answer

When we want to represent the system's behavior through application-specific operations.

Question 4

The input and output adapters are present in which hexagon?

Answer

The Framework hexagon.

Question 5

What's the difference between driving and driven operations? ...

Get Designing Hexagonal Architecture with Java now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.