All Questions
9 questions
1
vote
1
answer
150
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 ...
-1
votes
2
answers
160
views
Designing class for fixed-size data structure backed by ArrayList
Say we want to write a Java class that represents a fixed-size list. Let's call it Chunk.java (as in, it represents a chunk of data to be processed or sent somewhere). My implementation of this class ...
1
vote
1
answer
201
views
REST : Static API design
Lets say, I have a scenario where I have to expose an api to fetch supported shirt sizes(small , medium and large)
My initial thought was /v1/shirts/sizes - But this clashes with the existing fetch ...
0
votes
1
answer
348
views
API Split for creating object with inheritance and behaviors
I have a web service which is exposed to UI owned by our team. This web service is responsible for creation of objects and saving it in the DB (NoSQL Database). The object being created has multiple ...
-1
votes
1
answer
752
views
Exposing java service as static method or seam dependency
Our legacy application provide a static method public static boolean persist(Data data) for service/class callers for data persistence.
I do see unit testing issue for callers. Is this also an ...
3
votes
1
answer
459
views
What are some design ideas for a data mapping and transformation application?
Here is a high level outline of the project:
We frequently need to convert data from a new incoming system to our in house system (sort of a basic ETL process)
We would prefer to do this dynamically, ...
0
votes
2
answers
580
views
Hiding implementation framework usage in an API
I am currenctly trying to create an API for a UI framework, for a new application. This UI framework is internally implemented using an existing framework, let us say JavaFX. I want to hide the ...
4
votes
1
answer
3k
views
Designing a flexible API with support for Callbacks
I am writing a Java library that needs to make http GET && POST requests. There will be two types of users of this library:
Those with understanding of callbacks and know how to use them.
...
1
vote
1
answer
1k
views
How to avoid LazyInitializationException using Hibernate and Jersey
I am working with Spring Boot + Jersey + JPA/Hibernate to build a RESTful API. The issue I am encountering right now is when I have a relationship in my JPA Entity that is lazy loaded I get a lazy ...