All Questions
8 questions
0
votes
0
answers
117
views
Spring data exchange between components?
Please advise me what pattern to use in following case:
I have a Java/Spring Boot application. There is a component with @KafkaListener method which receives Kafka Messages on CRUD of various subject ...
0
votes
2
answers
1k
views
Which design pattern to use to make a mix of in-sequence and parallel HTTP calls?
We have to make a bunch of HTTP calls from Java/Spring-Boot application which will be mix of in-sequence and parallel.
Level 1 : We make 3 parallel calls to Services 1 , 2 and 3
Level 2: After service ...
3
votes
1
answer
421
views
Java inheritance error handling scenario
I looked multiple places for some advice on how to solve this before asking this question, but I couldn't find something similar to this.
So I have the following scenario in Java Spring Integration
...
0
votes
1
answer
1k
views
Java Design Pattern to Use for switching between 2 different endpoints
I have a legacy service that is running on-prem and have built a new service that runs on cloud which provides the same functionality. I have another java (spring) service which consumes the on-prem ...
-1
votes
1
answer
800
views
IOC principle - Servlet container implementation
IOC principle can be implemented, using either:
Dependency Injection
Service locator pattern
This article also supports these two approaches for implementing IOC principle.
Spring IOC container is ...
1
vote
2
answers
516
views
Unique Identifiers for classes - Java with Spring
My use case requires me to implement multiple validators which implement the interface:
public interface Validator {
boolean validate(Object o);
}
Based on the business group of the Object o, a ...
3
votes
1
answer
3k
views
Using prototype/non-Spring managed beans in Spring Web application
I have been working on few web applications/REST web services recently (Spring IoC/MVC/Data JPA etc) and they usually follow the same pattern: Controller classes --> Service classes (which have number ...
-6
votes
1
answer
4k
views
Singleton: Is Singleton an Anti-Pattern [duplicate]
Was reading an interesting blog post on Singleton design pattern which is so widely used.
If it's stupid or as in some quora posts, its an anti-pattern why is it so widely used even in frameworks.
...