Performance: Multi-module project structure
MEDIUM IMPACT
This affects the initial build time and the size of the deployed application, which impacts page load speed and server response time.
Split the project into multiple Maven or Gradle modules, each with focused responsibilities and dependencies.
Single large Spring Boot project with all features and dependencies in one module (monolith).
| Pattern | Build Time | Server Startup | Artifact Size | Verdict |
|---|---|---|---|---|
| Monolithic single module | Long (full rebuild every time) | Slow (large JAR to load) | Large (all features bundled) | [X] Bad |
| Multi-module structure | Shorter (incremental builds) | Faster (smaller modules) | Smaller (focused artifacts) | [OK] Good |