Tagged Questions
1
vote
2answers
950 views
What is a best practice tier structure of a Java EE 6/7 application?
I was attempting to find a best practice for modeling the tiers in a Java EE application yesterday and couldn't come up with anything current. In the past, say java 1.4, it was four tiers:
...
1
vote
2answers
419 views
Should I cache the data or hit the database?
I have not worked with any caching mechanisms and was wondering what my options are in the .net world for the following scenario.
We basically have a a REST Service where the user passes an ID of a ...
0
votes
2answers
190 views
Should Business Interfaces be part of the Model layer?
In an oriented-services enterprise application, isn't it an antipattern to mix Service APIs (containing interface that external users depends on) with Model objects (entities, custom exceptions ...
2
votes
1answer
565 views
When using Java Persistence API (JPA), which layer owns the entities?
When working with annotations on entities in JPA, do these entities belong to the model layer or the persistence layer?
Does there have to be some kind of clone of the entities (simple JavaBeans) in ...
6
votes
5answers
296 views
Does project architecture have a strong relation to used libraries?
Programmers, when it comes to talk about popular patterns in enterprise applications, preach that you should code against interfaces to remove strong relations between components; doing this will aid ...
3
votes
1answer
335 views
What is one correct architecture when using a DB with multiple clients?
We have a legacy system with data stored in a SQL database.
Several clients connects to this database using a web service.
The web service expose a lot of "commands" to query the database and to "do" ...
