What I learned today — 25 January 2018

Niel de Wet
1 min readJan 25, 2018

--

What do you call the object where the Application Layer touches the Domain Layer? Today we remodeled a large part of a microservice that follows the CQRS/Event Sourcing pattern. We have RESTful resources and anticipate queue listeners that will be another type of entry point. All interactions start by issuing a command to a command gateway, and we want a thin layer around the command gateway that can be called by any entry point and does simple transformations and orchestration. What do you call such an object? Service is far to generic. Fortunately we refer to RESTful resources rather than the common REST controllers, which frees up the term Controller to be an object that is responsible for knowing how to interact with the Domain Layer.

--

--

No responses yet