Questions tagged [application-layer]
48 questions
9
votes
2 answers
In which layer should Specification Pattern objects be "new'ed up"?
So, I've looked at some posts about the Specification Pattern here, and haven't found an answer to this one yet.
My question is, in an n-layered architecture, where exactly should me Specifications get "newed" up?
I could put them in my Service…

Michael McCarthy
- 1,502
- 3
- 18
- 45
9
votes
3 answers
How does ping resolve ip addresses?
The ping utility works above the network layer and DNS works in the application layer.
If we try ping www.google.com, how does it resolve the IP address of GOOGLE since the DNS is above these layers?

user1762571
- 1,888
- 7
- 28
- 47
7
votes
1 answer
In what layer do controllers fit in layered architecture/DDD
So, I've seen some questions about it here but none of them was specific about it neither answered my doubt.
In a layered architecture/DDD application, in what layer would a controller (the "C" in common MVC applications) fit? I've read in different…

Talysson
- 1,363
- 1
- 9
- 13
5
votes
8 answers
where to put the Business Logic, AppLayer o DataLayer?
After reading this post (business logic database or application layer) I still don't have the sufficient reasons to fight the "business logic in database" topic.
In my current work, there is a lot of db transaction (actually) and all that crappy…

Garis M Suero
- 7,974
- 7
- 45
- 68
5
votes
1 answer
How does application layer unit tests look like in DDD?
In my job we are writing web services, which are called by an app. We are working in agile mind set using domain driven design. As in DDD we have domain and application layer. However, we encountered problem in writing unit tests for those layers,…

M. Dabulskis
- 77
- 1
- 7
4
votes
2 answers
Use Case to Command / Application Layer Mapping: Implementation
Some texts I've read regarding DDD indicate that an Application Service or a Command (CQRS) in the Application Layer closely mirrors a specific Use Case.
For simple use cases, this mapping makes sense, but in more complicated instances that require…

Steven
- 823
- 8
- 25
4
votes
2 answers
DDD: what are the OOP alternatives for procedural Application Services?
I recently got a book Patterns, Principles and Practices of Domain-Driven Design by Scott Miller and Nick Tune. It has some nice examples in C#, so a bit different from the other DDD books I read before which was in Java. The Domain event…

Lord Yggdrasill
- 3,197
- 4
- 26
- 42
2
votes
0 answers
UDP packets always arrive at the transport layer (detected by wireshark) but not are not always read by the application
Context
I have been creating a system where an raspberry PI is sending images to a remote client in real-time.
The raspberry PI captures the images using a raspberry PI camera. A captured image is available as a 3-dimensional array of all the pixels…

Dirk
- 95
- 1
- 8
2
votes
0 answers
OMNET++: INET 4.0 How to obtain beacon frame signal power in the app layer?
I'm using INET 4.0 framework for OMNET++ and I'm trying to obtain the received signal power of the beacon frames sent by Access Points at my AdhocHost's app layer.I am well aware that it is possible to use to the SignalPowerInd tag for that purpose,…

Farzan Badakhshan
- 373
- 1
- 5
- 19
2
votes
2 answers
Does application services belong to domain layer or application layer?
I have a N-Layered Winforms application with 4 layers as follows:
Presentation Layer
Application Layer
Domain Layer
Infrastructure Layer
My Application Layer has a Product Services class which is used for all repository related actions for Products.…

Robertcode
- 911
- 1
- 13
- 26
2
votes
1 answer
Where Should Data Transfer Objects (DTOs) be declared in a layered application using DDD
I used to have my DTOs declared in the Domain Layer. But that was before I later understood that the Application Layer should pass in primitives to the Domain Layer to instantiate Domain Model Entities, not DTOs. Now that I know this, I have no use…

Robertcode
- 911
- 1
- 13
- 26
2
votes
2 answers
A (T)Sql view containing too much business logic
I have a TSQL view. Apart from a few columns it is pretty basic in that it simply does a few joins and then glues everything together to present a nice view as it should be. However, the few columns which are not so simple makes the view code very…

Force444
- 3,321
- 9
- 39
- 77
2
votes
1 answer
Primary Server and Hot Standby Server architecture
I am now starting to look into building the proper architecture for Intranet network with one Primary Server and a Secondary Server that I would like to operate as a hot standby.
My knowladge of this is quite minimal and I am looking for guidelines…

LimS
- 85
- 1
- 10
2
votes
2 answers
Contextual Domain Driven Model Validation
In our application we have a scenario where we need to validate an property update based on business rules and the context of the current user. I am trying to determine the best way to do the validation because I think that the domain model should…

user2354863
- 71
- 5
1
vote
1 answer
Application level cache in CodeIgniter
Is there any thing call application level cache objects in codeIgniter? Just like in Spring (Java EE) web applications? Further in Spring if we use ehcache then more options like FIFO,LIFO etc.

samitha
- 11
- 1