Skip to content
CAI
Software that uses CAICheck a score

rozturac/go-ddd-example

40.9

Weak · 8 November 2026

579

lines of production code

Go

primary language

7

measurements over time

CAI band scale
CAI trend line
CAI lens gauges

What this system is

Features

Add RabbitMQ-based event dispatching and MongoDB persistence for user operations

The infrastructure layer now introduces a RabbitMQ-backed event dispatcher and a MongoDB-based user repository. The new \common-dependency-injections.go\ and \rabbitmq-event-dispatcher.go\ files wire up a \RabbitMQEventDispatcher\ that publishes domain events to RabbitMQ queues. Simultaneously, \user-repository.go\ and \user-dependency-injections.go\ implement the user repository using MongoDB, enabling the user service to persist user data and dispatch domain events via the new event dispatcher. This change adds the necessary infrastructure components to support event-driven architecture and database interactions for user-related functionality.

infrastructure · medium confidence

Added MIT license and initial project structure

The repository now includes a LICENSE file specifying the MIT license for the software, and a main.go entry point that initializes the API. The README has been updated to document the folder structure and explain the roles of the API, Application, Domain, and Infrastructure layers, providing users with an overview of the Domain-Driven Design architecture.

(repo-wide) · high confidence

Initial API server setup with user and RabbitMQ integration

The API entry point (api/statup.go) and configuration (api/configs/appconfig.go) have been added, establishing the server on port 8080. This includes a new appsettings.dev.json for environment-specific configuration, a Go config loader using Viper, and the registration of user-related endpoints (CreateGuestUser, GetUserByObjectId) via the Echo framework. Additionally, a RabbitMQ consumer binding is initialized to handle user-created events.

api · medium confidence

Introduce user management service and RabbitMQ consumer

The application layer now includes a new user service that handles user creation (including admin and guest types) and authentication, mapping domain entities to application models. Additionally, a RabbitMQ consumer has been added to process user-created events, integrating with the existing event dispatcher structure.

application · high confidence

Introduces domain models and infrastructure for user management

The domain layer now includes the User aggregate root, which implements domain event tracking and integrates with an encrypted password mechanism that hashes and verifies credentials. The change adds a user repository interface for persistence, defines user roles (Admin, Guest), and establishes a base event dispatcher interface to handle domain events, supporting the overall event-driven architecture.

domain · medium 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 41 → 41 (+0.3)
  • Rubric changed (rubric-2026.10.5 → rubric-2026.11.2) — scores are not directly comparable.

Lenses

  • Code Health 100 → 100 (+0.0)
  • Architecture 69 → 69 (+0.0)
  • Maturity 50 → 50 (+0.0)
  • Readiness 18 → 18 (+0.0)
  • Security 86 → 97 (+11.1)
  • Domain Modelling 56 → 56 (+0.0)
  • Event-Driven 83 → 83 (+0.0)

New (1)

  • Scattered collaborators

Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

Survey your own repository

rozturac/go-ddd-example 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 f8d6cfa879a48934bc2367b0b196e16cf72efc22 — 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-45ab2cab63de.