All Questions
20 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
1
answer
69
views
Design a non replayable endpoint for a service
I am trying something out in Springboot and stuck with a weird issue where I want to send some data from my frontend (react app) to backend (SpringBoot) and make that request non replay able by users (...
1
vote
2
answers
122
views
Designing UI module for an application
I have an UI module that will expose only one class - UserInterface. The class will be responsible for collecting user input and providing output (command line UI style). From logical way of thinking, ...
1
vote
4
answers
234
views
Architectural problem for class combination (cartesian product) for save format strategy
Hello to everyone and thank you for any suggestion.
I have a family of subclasses of Track (Track is abstract).
Every concrete Track has a different number and types of fields (attributes) that extend ...
1
vote
1
answer
6k
views
Design Pattern for accessing data over RestAPI calls
I am looking out for a general design strategy or pattern designing various components in my client application. Here are high level details:
The data is accessed my making a RestAPI call. The data ...
-2
votes
1
answer
57
views
Design to method chain across packages
So bascially we have a library that contains a series of bifunctions passed in the metadata and datum looking like:
Transform1:
package transformation1;
import com.fasterxml.jackson.databind....
7
votes
2
answers
6k
views
Is the builder pattern appropriate to use to update Objects in a Service layer?
Currently, in our service layer, we pass an id as well as a new updated value, something akin to
updatePersonName(Person person, Name name)
which, in turn, calls the corresponding repository ...
7
votes
5
answers
3k
views
Design pattern for 2 methods one has 70% arguments of other one
I am trying to do a design for notification part in the system I have 2 parts inApp notification and email notification so I used strategy pattern where I have interface NotificationSender with one ...
1
vote
1
answer
746
views
Where and how to connect to external API in my service class?
In my service class I would like to connect to external API. Where and how should I do it?
1) Inject in constructor ExternalClass and assign to private property. Next in other property in constructor ...
1
vote
1
answer
307
views
Writing Event Process architecture for multiple event handler interfaces
I am working on Java program which will listen multiple kind of events from multiple sources and store information to multiple sinks.
Each interface will have its own source to listen and own sink ...
0
votes
1
answer
301
views
Evaluation of (a)synchronous design of ledger interface
I'm currently designing a ledger API, that should work with different implementations (e.g. based on Blockchain, traditional databases, or files).
Its purpose is to add/get messages to/from a ...
8
votes
1
answer
7k
views
Implementing a REST API in a Clean Architecture
I have been implementing a proof of concept application using Uncle Bob's Clean Architecture and I have run into a bit of a problem.
Uncle Bob's architecture calls for the explicit separation of ...
4
votes
5
answers
234
views
How can I determine if a field should be separated into its own class?
For example, lets say I have this class:
public class Account {
private String username
private String email
private String phoneNumber
private String zipCode
private String ...
1
vote
1
answer
2k
views
MVP: Should a View have multiple Presenters?
Is it desirable (from an architectural standpoint) to have more than one Presenter communicating with a View?
In my particular situation I have one presenter communicating with multiple views, and ...
1
vote
1
answer
131
views
Using constructors for "layered" instances
I'm working on a library that can represent LED strips virtually. My main class, LEDStrip, is abstract and has a couple abstract methods, like getLength() and setColor(int index, Color c). This lets ...