Questions tagged [layers]

Layer (or abstraction level, or a layer of abstraction) is a way of hiding the implementation details of a particular set of functionality.

187 questions
7
votes
4 answers

Processing a stream. Must layers be violated?

Theoretical situation: One trillion foobars are stored in a text file (no fancy databases). Each foobar must have some business logic executed on it. A set of 1 trillion will not fit in memory so the data layer cannot return a big set to the…
Lord Tydus
  • 1,439
  • 1
  • 10
  • 12
2
votes
2 answers

Where and how to handle Unique column constraints

I want a non-primary key column to be unique. This is enforced with a unique constraint. In a service endpoint I want to return a nice error message structured into a {field, messsage} object when unique constraints are violated. Currently I check…
Jakob
  • 213
1
vote
1 answer

Can an outside component interact with lower layers directly in a strictly layered architecture

If we have a strictly layered architecture, can we allow outside components to interact directly with the lower layeres? More specifically: In my lower layers, I am providing a service, and in the top most layer I have a layer called Applications…
Moj
  • 111
0
votes
1 answer

Understanding dependency inversion

According to the definition by Robert Martin, high level modules should not depend on low level modules, instead both should depend on abstractions. So if I have a domain entity Invoice that uses an interface InvoiceRepository for persistence, and…
Hans
  • 416