21 questions
1
vote
2
answers
194
views
Expanding Spring Modulith tracing tags
I am using Spring Modulith 2.0.0-M3 with Spring Boot 4.0.0-RC1. I have enabled zipkin tracing export and I can see that Spring Modulith adds a module.key and module.method tags to the trace.
I would ...
0
votes
1
answer
255
views
Spring Modulith with clean architecture and java gradle multi module setup
I am trying to combine spring modulith (1.3.4) and clean architecture to verify the proper dependencies between gradle modules. The project setup is defined by the following structure:
Domain
Logical ...
0
votes
1
answer
235
views
Multiproject application setup and spring modulith configuration
I'm trying to setup a new project for two different applications that will share some common functionality:
Gradle project
|
\_ Application A (package com.a)
|
\_ Application B (package com.b)
|
\_ ...
4
votes
1
answer
981
views
Where to place events in a Spring Modulith application?
When using Spring Modulith with events, is it better practice placing the events of each module within each module?
- com.example
|- product
|- application
|- domain
|- events
...
0
votes
0
answers
200
views
How to Configure Multiple Datasources in Spring Modulith?
Is there a way to set up multiple datasources (all mysql) in a Spring Boot application using Spring Modulith, where each module has a different database and schema, without manually defining beans ...
4
votes
1
answer
2k
views
Why is a Spring Modulith @ApplicationModuleListener not triggered when an event it listens to is published?
I'm trying to build a dummy POC, but I am missing something, that I can't figure out. The issue is that the method annotated with @ApplicationModuleListener is not triggered.
Here is my code:
package ...
3
votes
3
answers
1k
views
Recommended approach to get data from one BoundedContext/AggregateRoot with some additional data from a different BoundedContext/AggregateRoot?
I am thinking of building a modular monolith, using Spring Modulith, and also apply Domain Driven Design (DDD).
I have a question regarding fetching data from multiple modules and what is the ...
3
votes
2
answers
1k
views
How to configure retries for failed Spring application events persisted with Spring Modulith's Event Publication Repository?
I am investigating how the Event Publication Repository in Spring Modulith works. I have it working so that when a listener fails, the event is stored in the registry as incomplete. According to the ...
0
votes
1
answer
247
views
Is it possible to use Spring Modulith successfully without DDD?
Most of the examples of using Spring Modulith use DDD in some capacity and organizing things by bounded contexts.
My use case is an application which offers a REST API which interacts several backends ...
3
votes
0
answers
904
views
Spring Modulith Events
I am publishing an Event in a method that is annotated with the annotation @Transactional.
The Listener is a annotated with @TransactionalEventListener.
The above setup results in sync(We can use @...
1
vote
2
answers
2k
views
Spring Modulith - ApplicationModuleTest with JPA repositories in different modules
While working with Spring Modulith I am trying to test the ApplicationModuleTest in a multi module application. I am running into problems when spring is trying to create JpaRepositories ...