Skip to content
CAI
Software that uses CAICheck a score

amitayh/event-sourcing-kafka-streams

40.0

Weak · 8 November 2026

974

lines of production code

Scala

with JavaScript

7

measurements over time

CAI band scale
CAI trend line
CAI lens gauges

What this system is

This system is a Kafka-based invoice management service that processes commands and events to maintain a consistent state of invoice data. It features a React frontend for creating, viewing, and managing invoices, which communicates with a backend API to execute operations and receive real-time updates. The architecture utilizes Java and Scala components, including a command handler and a list projector, to persist invoice records directly to MySQL while leveraging Kafka for event streaming and serialization.

Features

Added shell scripts to launch Java services with externalized configuration

New shell scripts in the bin directory (commandhandler, projector, setup, web) now allow users to start the respective Java applications by sourcing a shared config utility. These scripts read connection details (such as bootstrap servers and database credentials) from a properties file, enabling easier local deployment and configuration management without hardcoding values in the launch commands.

bin, config · high confidence

Initial client-side invoice management UI

Adds a React-based single-page application for managing invoices, featuring a list view with pay/delete actions, a creation form for new invoices, and real-time status updates via Server-Sent Events. The client communicates with a backend API at localhost:8080 to execute commands (create, pay, delete) and listen for state changes, using a simple local state management pattern.

client · high confidence

Initial web application release with Docker support

The web module is introduced as a new component, providing a React-based frontend for the Kafka Streams Demo. The application is packaged into a JAR and served via a new Dockerfile based on Java 8, exposing port 8080. The frontend includes static assets (HTML, CSS, JS) that utilize Bootstrap 3.3.7 for styling and implement a state management system for handling invoice creation, updates, and deletion, communicating with the backend via HTTP requests.

web · high confidence

Behavioural changes

Invoice listing now filters for active invoices and DAO uses dependency injection

The invoice list query now explicitly filters for invoices with 'New' or 'Paid' status, excluding other states like 'Deleted' from the default view. Additionally, the data access layer has been refactored to use dependency injection: the MySQL DAO now accepts a transactor via its constructor and provides a Resource for setup, replacing the previous hardcoded environment-variable-based initialization in the companion object.

commandhandler, listdao · high confidence

List projector switches from Pusher webhooks to direct MySQL persistence

The list projector no longer pushes invoice updates and command results to external Pusher channels; instead, it saves invoice records directly to MySQL via a new \MySqlInvoiceList\ dependency. This change removes the Pusher integration code and replaces the previous multi-step processing (pushing updates and results) with a single step that persists invoice data locally, simplifying the architecture by removing the external real-time notification dependency for this component.

listprojector · high confidence

Refactored Kafka topic configuration and domain model serialization

The common module now uses generic, type-safe Kafka topic definitions that explicitly specify key and value serializers (Avro and UUID) for events, commands, results, and snapshots, replacing the previous string-only topic configuration. This change moves serialization logic into the topic definitions and simplifies the topic creation process. Additionally, the domain model was refactored: the \CommandResult\ class was moved to its own file, and the \Command\ and \Event\ payload traits were updated to use explicit \apply\ methods instead of extending function types, improving type clarity and separation of concerns.

common · high confidence

Dependencies

Upgrade Scala dependencies and remove Pusher client

The project updates several core Scala libraries, including http4s (0.18.14 to 0.20.0-M7), circe (0.9.3 to 0.10.0), and doobie (0.5.3 to 0.6.0), while adding cats-retry for retry logic. The Pusher dependency is removed from the backend, and the client-side React application is initialized with React 16.2.0 and related tooling.

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

Lenses

  • Code Health 55 → 55 (+0.0)
  • Architecture 69 → 69 (+0.0)
  • Maturity 50 → 55 (+5.2)
  • Readiness 15 → 16 (+1.0)
  • Security 64 → 63 (-0.1)
  • Domain Modelling 100 → 100 (+0.0)
  • Performance 95 → 100 (+4.6)

Resolved (1)

  • Dependency hygiene PARTLY measured — sbt declarations read, dependency currency not (Maven Central unreachable)

New (6)

  • Banned license: mysql:mysql-connector-java
  • Outdated: ch.qos.logback:logback-classic
  • Outdated: mysql:mysql-connector-java
  • Outdated: org.apache.kafka:kafka-clients
  • Outdated: org.apache.kafka:kafka-streams
  • Outdated: org.slf4j:jcl-over-slf4j

Architecture

  • Unchanged — 0 containers · 1 contexts · 0 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

amitayh/event-sourcing-kafka-streams 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 85aca484cdebf32298a06c4215c187cfaef11083 — 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.