All Questions
14 questions
4
votes
2
answers
987
views
Spring Boot API - Avoiding Concurrency issues
I'm still in the process of learning Java / spring and I think I'm getting better. Now at this point I'm able to build a rest api BUT I'm at a lost at how to ensure I've no concurrency issues . I've ...
3
votes
0
answers
211
views
Migrate customer and transaction data from CSV to MongoDB
I wrote a Java Spring Boot application with MongoDB that on every application start loads customer, account type and transaction details from CSV files to MongoDB. It has one end point that returns ...
2
votes
1
answer
3k
views
Spring, Kafka and Mongo how to create a RestController
I'm learning how to use Kafka, I've never used something similar in the past. In my job I was required to create a POC using it and integrate it to Spring Boot and save information on MongoDB (because ...
0
votes
1
answer
207
views
Decompose big service class into small classes
Need to parse MongoDB collection and save parsed data into different postgres tables. MongoDB stores documents with different type field, for each type need to ...
1
vote
2
answers
4k
views
Java MongoDB client as a singleton
Is below code a valid Singleton design pattern for Mongodb in Java?
Please suggest any improvements.
...
2
votes
1
answer
89
views
Generating Report Data in CSV format for various cases
I have to show report data for various cases in text-csv format as soon as the user click's on the given URI's.
The given cases are:
End_Customer Data
Incomplete Profiles.
Total Connections
Below ...
1
vote
1
answer
388
views
Spring MVC, Mongodb and java
I am avery beginner at SPring MVC, Mongodb and java. I am trying to make a sample application so that the user can serach, create, update and delete a customer:
My CustomerDAO class:
...
2
votes
2
answers
244
views
RSS to JSON for insertion into MongoDB
In my code, there is a chain of functions call where the deepest function may throw an exception. I catch and handle it according to the business logic. The problem is that all other functions in the ...
3
votes
1
answer
443
views
Retrieve rich text from GridFS with Java
I am writing a storage for articles and I have decided to use GridFS from MongoDB. I have found and tested some code, but I am not sure that it is a best one. Could you advice me how to make it better?...
5
votes
1
answer
1k
views
Image duplicate finder
I have a bunch of exact-duplicate pictures that I've acquired over the years. I'd like to create a list of all them so I can eventually delete some. My idea was simple: dump the hash and location of ...
15
votes
2
answers
851
views
Builder pattern for users in document database
I'm attempting to make a builder pattern that makes sense and is practical for storing user data in a flexible way in a document database. The DB I chose is MongoDB, and I'm using its Java API ...
0
votes
1
answer
718
views
Multi-player game server accessing and querying MongoDB
I have a remote hosted server that's running Java VM with custom server code for a multiplayer real-time quiz game. The server deals with matchmaking, rooms, lobbies etc. I'm also using a MongoDB on ...
2
votes
0
answers
788
views
NoSQL-based sequence generator
For my web application I have to generate a sequence of following format:
<year><sometext><month><sequence>
For example:
...
6
votes
2
answers
2k
views
Simple telephone address book
I am new to Java programming, and to help me learn, I created a simple telephone address book. The code runs as expected, but I would be interested to here from more advanced programmers if they ...