All Questions
228
questions
0
votes
0
answers
57
views
Securing microservices with Spring Security JWT
I would like to build a RESTful microservices architecture where each microservice acts as a resource server. Additionally, there will be an authorization server responsible only for user registration,...
1
vote
1
answer
63
views
Rate limiting WebFilter
It's a simple WebFilter for limiting RPS from one of my projects.
There's only one OOB BucketResolver that has one shared bucket ...
2
votes
2
answers
512
views
Using java streams to handle incoming API requests
I am using the java stream API to handle incoming requests my employee service.
A few questions I had are:
Does using the streams API in the way I'm using it below affect the performance of the ...
0
votes
0
answers
36
views
ParamInitializer framework: automatic provision of expected request parameters by Spring Cloud Gateway
I continue to share portions of my Dynamic Gateway project
This time, I want to publish the types relating to its "parameter initializing" functionality. The idea is simple: if my gateway ...
0
votes
0
answers
41
views
Retrieving resources of JWT-authenticated user Spring Boot Java
I have a Java Spring Boot Rest-API which is authenticated using JWT-tokens. Currently the API only contains Users and CashflowCategories. An user can have many CashflowCategories.
When the user makes ...
0
votes
0
answers
37
views
Scaffolding through my own language (Rapid Application Development)
I'm developing a webapp where some parts that repeat, so I made source code to generate source code.
I had a lot of fun using Spring-Roo and Grails in the past but was sad that the difference between ...
2
votes
1
answer
44
views
Any possible issues with my approach to Access Management where I'm associating the list of Departments with the User class?
I have a spring boot project with JWT being used for Spring Security. I want to implement Access Management in my project and I'm using this approach. In my project, whenever a user is created, a list ...
4
votes
2
answers
86
views
Choosing Between Field Injections and Constructor Injections for Modular Java Applications with Spring Boot
I'm six months into a Java training program and have developed a Spring Boot application, adhering to Java's separation of concerns principle. I've organized my application with distinct sections for ...
2
votes
2
answers
107
views
Simple authentication server
Here's a simple authentication server. It's pretty basic but has the core functionality of sign-up and log-in handling. Your best bet is to simply run the ...
1
vote
0
answers
80
views
Flexible AuthenticationExtractionWebFilter
I decided to share with you a portion of my gateway project. It's an authentication extraction filter that extracts authentication claims without being coupled to any specific authentication mechanism....
1
vote
1
answer
356
views
Inserting large number of rows into database with Spring boot
I need to insert many million rows + many GB of data into a database for a project that uses Spring boot. I recreated a minimal example with a one to many relationship and am trying to find the ...
0
votes
2
answers
50
views
How to find a more effective way to load a file and compare in the service
I have a malware detection system that includes a subsystem responsible for IBAN checks. Initially, this subsystem needs to load and parse data from a specific URL. Subsequently, it checks whether the ...
1
vote
0
answers
37
views
Websocket code to be improved
This is the plain websocket code that connects with mobile app. Once we send a REST request from another service say B to our service A we send a websocket payload over the response. This runs in ...
1
vote
0
answers
69
views
Todo application using Spring Boot 3, Dockerized Postgres, Java 17, Maven
I'd like to have code review for backend of todo app.
It has 2 main functionalities:
Authentication and authorization using Spring Security and JWT token.
CRUD for tasks
In particular I'd like to ...
1
vote
1
answer
313
views
About self validated Java POJOs
I am currently experimenting with self validating Java beans in order to avoid the creation of objects with invalid states, while keeping the validation knowledge inside the bean. The goals I have in ...