Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Designing Hexagonal Architecture with Java

You're reading from  Designing Hexagonal Architecture with Java

Product type Book
Published in Jan 2022
Publisher Packt
ISBN-13 9781801816489
Pages 460 pages
Edition 1st Edition
Languages
Author (1):
Davi Vieira Davi Vieira
Profile icon Davi Vieira

Table of Contents (21) Chapters

Preface Section 1: Architecture Fundamentals
Chapter 1: Why Hexagonal Architecture? Chapter 2: Wrapping Business Rules inside Domain Hexagon Chapter 3: Handling Behavior with Ports and Use Cases Chapter 4: Creating Adapters to Interact with the Outside World Chapter 5: Exploring the Nature of Driving and Driven Operations Section 2: Using Hexagons to Create a Solid Foundation
Chapter 6: Building the Domain Hexagon Chapter 7: Building the Application Hexagon Chapter 8: Building the Framework Hexagon Chapter 9: Applying Dependency Inversion with Java Modules Section 3: Becoming Cloud-Native
Chapter 10: Adding Quarkus to a Modularized Hexagonal Application Chapter 11: Leveraging CDI Beans to Manage Ports and Use Cases Chapter 12: Using RESTEasy Reactive to Implement Input Adapters Chapter 13: Persisting Data with Output Adapters and Hibernate Reactive Chapter 14: Setting Up Dockerfile and Kubernetes Objects for Cloud Deployment Chapter 15: Good Design Practices for Your Hexagonal Application Assessments Other Books You May Enjoy

Modeling a problem domain with entities

In DDD, before any code is written, there must be lots of discussions between developers and domain experts—the people who have a deep understanding of the business. Those discussions provide valuable information acquired through a process called knowledge crunching, which is based on brainstorming between those developers and domain experts. That knowledge is then incorporated into the Ubiquitous Language. This language works as the lingua franca among everyone involved in the project and is present in documentation, day-to-day conversations, and—of course—in the code.

When we're dealing with entities, we must always pay attention to how much we can learn about the business by just reading the code, because the real deal happens when we employ the knowledge-crunching technique in order to continually evolve the Ubiquitous Language and make the code speak that language. That's the basis for rich entities that...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}