refactor: harden ThreadForge task lifecycle - #4
Conversation
Verification update: concurrency and load testingThis PR has now been validated with repeated unit/integration tests, executable example scenarios, and sustained concurrent JMH load. Unit and integration verification
The lifecycle/race stress group covered:
Total JUnit executions across this verification pass: 7,588, with 0 failures, 0 errors, and 0 skipped tests. All four examples were launched as real JVM processes. Their stdout was checked exactly on every run, and every process exited normally. Concurrent JMH loadEnvironment: JDK 17.0.8, 10 logical CPUs, 32 GB RAM.
The sustained 64-concurrency runs used 2 x 2-second warmups plus 5 x 5-second measurement windows:
Performance observationThe structured lifecycle has measurable microbenchmark overhead versus the plain JDK baselines:
This is not enough to call the change a performance regression because there is no same-host pre-fix baseline. It is recorded here as an optimization target and not hidden as a correctness failure. Validation boundaryThis is production-shaped local concurrency/load testing of the ThreadForge library, not replay of real production traffic. The repository does not contain a deployable HTTP service, production request model, or production endpoint. Remote CI remains green on JDK 8, 11, 17, and 21, including integrations, examples, and benchmarks. |
Summary
Verification
mvn -B -ntp clean verifyandmvn -B -ntp clean installmvn -B -ntp -f integrations/threadforge-slf4j/pom.xml clean verifymvn -B -ntp -f integrations/threadforge-micrometer/pom.xml clean verifyPlease review; do not merge yet.