All Questions
48 questions
1
vote
4
answers
413
views
Preventing payment to be processed twice
I have app with paymemt/subscription service, pretty much how the payment works is:
Initial payment
User initiate payment on the web ( click on "subscribe")
Back-End send init request to ...
1
vote
1
answer
149
views
Background thread processing vs queue based processing for relatively short tasks (max 30-40 seconds)
I need suggestion / recommendation on the design approaches mentioned below.
UseCase: I have a usecase where a client uses my system to generate some recommendations. Now, these recommendations are ...
0
votes
1
answer
240
views
Is it secured to accept and execute user provided CURL commands
Assume you have to figure out a dynamic way where the user can provide an API call to hit in the backend
for example, user to provide a webhook to call on his end server
So, An idea for users to ...
0
votes
2
answers
954
views
Is MVC a sensible design choice for a CLI application?
I am working on a CLI chess game that only involves 2 human players, I decided to make it follow the MVC architecture to ensure separation of concern and to make the possibility of a GUI/web ...
0
votes
2
answers
745
views
Microservices - create post for logged in user
I am working on a small project with microservices architecture in Spring Boot. As to not make unnecessary calls to users-microservice, I have duplicated some necessary User data (id, name, summary, ...
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, ...
0
votes
1
answer
450
views
How to use single Spring-Boot instance to cater to multiple environments?
We have a Spring-Boot Web application currently deployed to 7 environments (DEV, SIT, UAT, Pre-Prod, Prod, etc.). This application connects to other REST services, which has different URLs for each of ...
1
vote
1
answer
609
views
Pipeline design pattern and immutability
I'm developing a backend service that is supposed to process items in a pipeline-fashion. Each stage is essentially a Function<IN, OUT>. So the current stage's input is the previous stage's ...
1
vote
1
answer
805
views
Spring Boot/Batch: Should every Job be separate Maven module?
I'm building a backend service powered by Spring Batch which enables to define and Jobs.
Currently, I have several jobs, that essentially, aren't related one to another.
So,
I have one application....
2
votes
1
answer
894
views
How to build a modular/extensible Spring Boot application?
I'm developing a Spring boot / Batch application.
What I'd like to do is to have a separated module for every job. This is a reasonable decision because different tasks (Spring Batch Job) have ...
2
votes
1
answer
104
views
Which is the better architecture to follow for API Development in Java using any RDBMS database backend?
This question is regarding the better architecture to follow for API Development in Java using any RDBMS database backend.
Currently, we are using the below approach to fetch data from database and ...
12
votes
3
answers
6k
views
What's the difference between reactive programming and event driven architecture?
What's the difference between reactive programming and event driven architecture?
Is reactive programming a way of implementing event driven programming?
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 ...
3
votes
2
answers
256
views
How to manage cart details across various devices
Recently I was asked in a interview to implement to e-commerce site .
One of the requirement was to maintain cart details across various devices .(i.e) if user adds a book from his iPhone , and when ...