Skip to content
CAI
Software that uses CAICheck a score

habibsql/TheMicroServices

37.6

Weak · 8 November 2026

2.4k

lines of production code

C#

primary language

7

measurements over time

CAI band scale
CAI trend line
CAI lens gauges

What this system is

This system is a .NET-based microservices architecture designed to manage retail operations, specifically focusing on inventory tracking and purchase processing. It comprises an Inventory Microservice that maintains store and item data via a CQRS pattern and MongoDB, and a Purchase Microservice that handles order creation and history retrieval. The services communicate asynchronously through RabbitMQ events and synchronously via gRPC, with resilience mechanisms like circuit breakers ensuring stability during inter-service calls.

Features

Initial release of the Inventory Microservice

This change introduces the complete Inventory Microservice, establishing a new domain for managing store and inventory data. It includes a gRPC API for querying total item counts, a REST API for creating stores and querying store lists, and a domain model built on a CQRS pattern with MongoDB persistence. The service also features an event-driven architecture using RabbitMQ to handle product purchase and sales events, automatically updating inventory balances in response to these external events.

Src/InventoryMicroservice · high confidence

Initial release of the Purchase Microservice

This change introduces the complete Purchase Microservice, enabling users to create product purchases and query purchase history. The service exposes REST endpoints for submitting purchase orders (including line items) and retrieving paginated, sorted purchase records. It implements a CQRS architecture with command and query handlers, persists data to MongoDB, and integrates with RabbitMQ for event publishing. Additionally, the purchase command handler includes a circuit breaker policy for resilience when calling an external Inventory Service via gRPC.

Src/PurchaseMicroservice · high confidence

Dependencies

Initial project structure and dependency configuration for microservices

This change introduces the foundational project structure and dependency configurations for the Inventory, Purchase, and Sales microservices, along with shared Common libraries. It establishes .NET Core 3.1 for web APIs and test projects, and .NET Standard 2.1 for shared logic and domain layers. Key dependencies added include Grpc.AspNetCore (2.24.0) and Grpc.Core (2.33.1) for gRPC communication, MongoDB.Driver (2.11.0) for data persistence, RabbitMQ.Client (6.2.1) for messaging, and Polly (7.2.1) for resilience. Testing infrastructure is set up using xUnit (2.4.0), FluentAssertions (5.10.3), and Moq (4.14.7).

(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 37 → 38 (+1.0)
  • Rubric changed (rubric-2026.10.5 → rubric-2026.11.2) — scores are not directly comparable.

Lenses

  • Code Health 50 → 50 (+0.0)
  • Architecture 87 → 87 (+0.0)
  • Maturity 53 → 58 (+4.9)
  • Readiness 24 → 24 (+0.0)
  • Security 37 → 40 (+3.1)
  • Domain Modelling 54 → 54 (+0.0)
  • Event-Driven 84 → 84 (-0.6)
  • Performance 85 → 85 (+0.0)

Resolved (43)

  • End-of-life runtime: .NET netcoreapp3.1 (Src/SalesMicroservice/SalesWebApi/Sales.Api.csproj)
  • Inconsistent casing for the same field name in similar controller classes. One uses camelCase (commandBus) while the other likely follows the same pattern, but the inconsistency is subtle. However, a more glaring issue is the spelling of the interface/type name itself across the codebase.
  • Typo in method name: Decerialize should be Deserialize.
  • Typo in the constant class/namespace name: EmailAddressess (double 's').
  • Typo in the interface and class name: IPurchaseRepostiory and IPurchaseRepostiory (missing 's' in Repository). While consistent with itself, it is a typo that should be corrected to IPurchaseRepository.
  • XML-doc coverage: Common.Core (Src/CommonAll/Common.Core/Common.Core.csproj)
  • XML-doc coverage: Common.Infrastructure (Src/CommonAll/Common.Infrastructure/Common.Infrastructure.csproj)
  • XML-doc coverage: Inventory.Api (Src/InventoryMicroservice/InventoryWebApi/Inventory.Api.csproj)
  • XML-doc coverage: Inventory.Api.Grpc (Src/InventoryMicroservice/Inventory.Api.Grpc/Inventory.Api.Grpc.csproj)
  • XML-doc coverage: Inventory.Command (Src/InventoryMicroservice/InventoryCommand/Inventory.Command.csproj)
  • XML-doc coverage: Inventory.CommandHandler (Src/InventoryMicroservice/InventoryCommandHandler/Inventory.CommandHandler.csproj)
  • XML-doc coverage: Inventory.DTO (Src/InventoryMicroservice/InventoryDto/Inventory.DTO.csproj)
  • XML-doc coverage: Inventory.Domain (Src/InventoryMicroservice/InventoryDomain/Inventory.Domain.csproj)
  • XML-doc coverage: Inventory.Event (Src/InventoryMicroservice/Inventory.Event/Inventory.Event/Inventory.Event.csproj)
  • XML-doc coverage: Inventory.EventHandler (Src/InventoryMicroservice/Inventory.EventHandler/Inventory.EventHandler/Inventory.EventHandler.csproj)
  • XML-doc coverage: Inventory.Query (Src/InventoryMicroservice/InventoryQuery/Inventory.Query.csproj)
  • XML-doc coverage: Inventory.QueryHandler (Src/InventoryMicroservice/Inventory.QueryHandler/Inventory.QueryHandler.csproj)
  • XML-doc coverage: Inventory.Repository (Src/InventoryMicroservice/InventoryRepository/Inventory.Repository.csproj)
  • XML-doc coverage: InventoryCore (Src/InventoryMicroservice/InventoryCore/InventoryCore.csproj)
  • XML-doc coverage: InventoryDomainService (Src/InventoryMicroservice/InventoryDomainService/InventoryDomainService.csproj)
  • …and 23 more

New (11)

  • Documentation: no build, run or usage example (README.md)
  • Documentation: no map of the repository's parts (README.md)
  • End-of-life runtime: .NET netcoreapp3.1 (Src/CommonAll/Common.Core.Tests/Common.Core.Tests.csproj)
  • End-of-life runtime: .NET netcoreapp3.1 (Src/CommonAll/Common.Infrastructure.Tests/Common.Infrastructure.Tests.csproj)
  • End-of-life runtime: .NET netcoreapp3.1 (Src/InventoryMicroservice/Inventory.Api.Grpc.Tests/Inventory.Api.Grpc.Tests.csproj)
  • End-of-life runtime: .NET netcoreapp3.1 (Src/InventoryMicroservice/Inventory.Api.Grpc/Inventory.Api.Grpc.csproj)
  • End-of-life runtime: .NET netcoreapp3.1 (Src/InventoryMicroservice/Inventory.Api.Tests/Inventory.Api.Tests.csproj)
  • End-of-life runtime: .NET netcoreapp3.1 (Src/InventoryMicroservice/InventoryWebApi/Inventory.Api.csproj)
  • End-of-life runtime: .NET netcoreapp3.1 (Src/PurchaseMicroservice/PurchaseWebApi/Purchase.Api.csproj)
  • End-of-life runtime: .NET netcoreapp3.1 (Src/SalesMicroservice/Sales.Repository.Tests/Sales.Repository.Tests.csproj)
  • End-of-life runtime: .NET netcoreapp3.1 (Src/SalesMicroservice/SalesWebApi/Sales.Api.csproj)

API surface

  • Unchanged — 9 HTTP endpoints

Architecture

  • Unchanged — 6 containers · 4 contexts · 3 edges

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

Survey your own repository

habibsql/TheMicroServices 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 5191534da5faacea8919e099dffbfec110da68fc — 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.