Skip to content
CAI
Produce a survey ↗Verify a survey

patchlevel/event-sourcing

This system is an event sourcing framework that manages aggregate state by recording and replaying domain events. It provides a complete infrastructure for building event-driven applications, featuring a command and query bus, a pluggable event store with criteria-based querying, and a subscription engine for processing events. The architecture supports advanced capabilities such as aggregate snapshotting, event upcasting, personal data encryption, and schema management, all backed by comprehensive testing and performance benchmarking.

66.1

Adequate · 31 July 2026

14k

lines of production code

PHP

primary language

1

bus factor · 18 authors in all

4

measurements over time

CAI band scale
CAI trend line

How it got here

2020–2022 · Architecture modernization and testing

This period focused on modernizing the codebase's core abstractions, introducing a metadata-driven system for aggregates and events, and replacing legacy infrastructure with a stream-based event store and queue-based event bus. Concurrently, the project significantly expanded its test coverage, adding comprehensive unit and integration tests for the new components and utilities.

46 changes

2023–2024 · Subscription engine and message pipeline overhaul

This period focused on a comprehensive overhaul of the subscription engine, introducing a new architecture with distinct engine implementations, status tracking, and database-backed persistence. Simultaneously, the codebase introduced a new message processing pipeline with header registries, translators, and serializers, alongside extensive unit and integration tests for these subsystems.

35 changes

2025–2026 · Command and Query Bus implementation

This period focused on implementing a new CommandBus with automatic handler resolution and a fluent Lookup API for querying event streams. The work included adding corresponding handlers for aggregate operations, subscription cleanup mechanisms, and comprehensive unit and architecture tests to validate the new components.

9 changes

CAI lens gauges

Survey your own repository

patchlevel/event-sourcing 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 the surveyor at a repository you know and see whether you agree with it.

Survey a repository

About this page

  • The description of this project is derived from its own commit history, not from its README.
  • The score is its highest published measurement, taken on 31 July 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
  • Measured at commit 584f17b3c8 — the exact code this score is about.
  • Scored under rubric rubric-2026.08.18. Score the same commit under that rubric and you get the same number.
CAI link cards