Unanswered Questions
359 questions with no upvoted or accepted answers
11
votes
1
answer
620
views
Should I be concerned with dependencies?
Our organization uses IBM ClearCase to manage its versioning controls (for better or worse). We've been working on our application for several years now, and a large number of activities have started ...
6
votes
1
answer
16k
views
Should I mock ObjectMapper in my unit tests?
I have different services in a spring application that have a dependency on Jackson ObjectMapper, the unit tests rely on @InjectMocks to inject all the various dependencies to the class that is under ...
5
votes
1
answer
785
views
Applying Domain Driven Design - Model/Implementation
I'm quite new in the DDD-World and I'm just trying to figure out all the basics so please bear with me!
I have the following Entities:
- Datamodel
- Object Types
- Object Fields
A datamodel can ...
5
votes
0
answers
2k
views
Understanding the data flow in Spring REST layered architecture
I am new to Spring as well as layered architecture. So am a bit confused as how data flows among the different layers.
What so far I have understood is:
Layers:
Controller (which accepts requests)
...
5
votes
0
answers
3k
views
DDD directory structure for MVC app
As a means of learning and gaining some experience with domain-driven design, I'm restructuring/refactoring an old application written in PHP which utilizes the Laravel 5.1 framework. Below is a mock-...
4
votes
0
answers
2k
views
Best practice to reuse use cases in a clean architecture
Imagine a "clean architecture" in which you have two use cases. One of them is CreateCustomerHandler, and the other SignUpCustomerByGoogleAuthHandler. So, the ...
4
votes
0
answers
1k
views
Architecture design for Java servlet that triggers work (for sending push notifications)
I'm designing a push notification server (for pushing notification via APNS and Google servers) and have come up with the following design for a Java based web application server. I would really like ...
4
votes
0
answers
215
views
Incorporating custom Algorithm in SOLR-LUCENE , before Indexing?
CURRENT FLOW: I am using a custom algorithm(presently in php) to rank
the MYSQL records before INDEXING it to SOLR .
WHAT I WANT : Is it possible implementing this
ALGORITHM(may be in JAVA) inside ...
4
votes
0
answers
3k
views
Spring bean injection into a hibernate validator constraint
I have a controller method like listed below whose argument is annotated with @Valid to validate PasswordChange object using a Hibernate validator @Constraint. Both PasswordChange and a sample ...
4
votes
0
answers
412
views
How to deal with runtime changes to tenant-location in a clustered, multitenant web application with app-managed datasources?
I have a Java web application that supports multi-tenancy to keep customer data
separate.
Connection pools to each customer database are created at runtime. The
details of each customer shard (...
4
votes
1
answer
355
views
Staging of artifacts in the build server?
Java artifacts are often staged through different "quality levels", named like alpha, beta, releaseCandidate, release etc. They enter the next stage if they have passed tests (automatic or manual ones)...
4
votes
1
answer
1k
views
Design for syncing data from remote API
I am trying to find a robust and correct solution for syncing data from different sources to my local relational database.
I have different sources of data for eg: CSV, REST API and probably network ...
3
votes
0
answers
121
views
Why does the Java CompletableFuture API uses long + TimeUnit instead of Duration?
Java 9 introduced many new methods in the CompletableFuture API that support execution timeouts.
For example:
public CompletableFuture<T> orTimeout(long timeout, TimeUnit unit);
public ...
3
votes
0
answers
265
views
Logging by 3rd party libraries
We've got 2 very large platforms for our services & jobs.
Both platforms consists of 20+ servers hosting 1000+ services/jobs.
Each job/service is essentially a java web application.
Both ...
3
votes
0
answers
295
views
How should domain model entities expose information about the current state of their properties?
I'm new to DDD, so please bear with me.
I am trying to design a domain model around an extremely large and complex existing system, where most of the current "domain" logic is either in the UI or in ...