hsenasilva/sample-cqrs
52.4
Weak · 8 November 2026
535
lines of production code
Kotlin
primary language
7
measurements over time
What this system is
This system is a CQRS-based application that separates command and query responsibilities into distinct services. The command server handles state-changing operations and long-running processes using the Axon framework, while the query server manages read operations and data retrieval. It relies on MongoDB for persistence and Kafka for messaging, exposing REST APIs for both commands and queries.
Features
Introduce CQRS command server with Axon framework integration
The command-server module now implements a Command-Query Responsibility Segregation (CQRS) architecture using the Axon Framework. This includes a new Spring Boot application entry point, an aggregate root (SampleAggregate) handling Create and Cancel commands, and a saga (SampleSaga) for long-running process coordination. The server exposes a REST API at /samples via CommandController, which validates incoming requests and dispatches commands through the Axon command bus. Configuration is provided for MongoDB event storage, Kafka messaging, and Jackson serialization, with CORS headers explicitly set to allow cross-origin requests.
command-server · high confidence
Introduce core domain models and events for the CQRS sample
Added new files defining the core domain models and events for the CQRS sample application. The changes introduce a base SampleEvent class and specific event types (CreatedSampleEvent, CanceledCreateSampleEvent) alongside domain models including SampleId, Sample, SampleAction, and SampleStatus. These files establish the foundational data structures for the sample's command and query handling.
sample-core · high confidence
Introduce query-server with CQRS support and REST API
The query-server module is introduced, providing a Spring Boot application that exposes a REST API for retrieving sample data. It includes configuration for Axon (event handling, Kafka integration), MongoDB, and CORS headers. The server listens on port 8085 at the /query-sample/api context path, serving GET requests for /samples/{id} and processing domain events (RequestedSampleEvent, CreatedSampleEvent, CanceledCreateSampleEvent) to update the MongoDB repository.
query-server · high confidence
Behavioural changes
1 commit (0 fixes) modifying classes
A change to existing behaviour in classes — 1 commit, 1 file.
classes · low confidence · unverified
Dependencies
Updated Java build dependencies and module structure
The project's Maven build configuration has been updated across four POM files (root, command-server, query-server, and sample-core). Key changes include upgrading the Gson library to version 2.8.9 in the query-server module, adding the sample-core module, and updating various dependency versions and repository configurations to support the new multi-module CQRS architecture.
(dependencies) · high confidence
Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.
How this codebase got here
Score
- CAI 52 → 52 (+0.1)
- Rubric changed (rubric-2026.10.5 → rubric-2026.11.2) — scores are not directly comparable.
Lenses
- Code Health 77 → 77 (+0.0)
- Architecture 81 → 81 (+0.0)
- Maturity 76 → 76 (+0.4)
- Readiness 20 → 20 (+0.0)
- Security 94 → 94 (+0.0)
- Domain Modelling 100 → 100 (+0.0)
- Event Sourcing 100 → 100 (+0.0)
Resolved (3)
- Dependency hygiene PARTLY measured — Maven/Gradle declarations read, no dependency graph resolved
- Documentation: no installation or build instructions (README.md)
- Documentation: no usage examples (README.md)
New (4)
- Dependency hygiene PARTLY measured — Maven build resolved part of the dependency graph, currency reported but not scored
- Outdated (compile -- module annotations (auto)): org.jetbrains:annotations
- Outdated (compile -- module kotlin.stdlib): org.jetbrains.kotlin:kotlin-stdlib
- Outdated (compile -- module kotlin.stdlib.common (auto)): org.jetbrains.kotlin:kotlin-stdlib-common
Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.
Survey your own repository
hsenasilva/sample-cqrs was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point a surveyor at a repository you know and see whether you agree with it.
About this page
- The score is its most recent published measurement, taken on 8 November 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
- Measured at commit c304acb579aff0a5895f1e1ed4476e9da417bc4a — the exact code this score is about.
- Scored under rubric-2026.11.2 — the same rubric and the same method as every other entry in this index.
- Measured by Canine Code Analyzer (cca.canine.dev) using cca measure-2026.11.3+preprod-bb0cb800cd0f.