Svaťa Šimara
Jan 11, 2021

--

What's Your situation? It may vary :-)

If the interface serves to separate layers, then I would call interface without suffix, and implementation with prefix of concrete technology.

Eg. My domain layer connects to weather history API (external system). And the company serving the historical data is called Climacell.

In Domain layer, I would call the interface WeatherHistory (eg. with method byDate() ).

In Infrastructure layer, I would have the implementation of the interface called ClimacellWheatherHistory.

But if You have a different case of using interfaces, the solution will be different.

--

--

Svaťa Šimara
Svaťa Šimara

Written by Svaťa Šimara

Developer interested in Domain-Driven Design & Modeling

No responses yet