Skip to content
CAI
Software that uses CAICheck a score

lpgauth/marina

74.9

Strong · 2 October 2026

2k

lines of production code

Erlang

primary language

2

measurements over time

CAI band scale
CAI trend line
CAI lens gauges

What this system is

Marina is a high-performance Erlang client library for Apache Cassandra and ScyllaDB that implements the CQL native protocol v4. It provides features such as token-aware routing, connection pooling, prepared statement caching, and LZ4 compression to optimize database interactions. The system includes synchronous and asynchronous query APIs, automatic topology synchronization, and telemetry for monitoring request lifecycles.

Features

Initial project release with CQL v4 support and token-aware routing

This entry introduces the marina project, a high-performance Erlang CQL client for Apache Cassandra and ScyllaDB. It adds support for the CQL native protocol v4, including batch queries, prepared statement caching, and optional LZ4 compression. The client features token-aware routing using Murmur3 hashing to direct queries to the correct replica, along with topology awareness that subscribes to cluster events to keep the node ring up-to-date without polling. Configuration is handled via application environment variables for settings such as bootstrap IPs, pool size, and load-balancing strategies. The release also includes telemetry events for request tracking and tightens error types for better Dialyzer checking.

(repo-wide) · high confidence

Initial release of Marina CQL client with configurable connection and query options

This change introduces the Marina CQL client library, providing a new interface for connecting to Cassandra/Scylla databases. The library supports CQL protocol v4 and includes features such as connection pooling (with random and token-aware strategies), query consistency levels, paging support, prepared statements, and LZ4 compression. Configuration is exposed via environment variables for settings like bootstrap IPs, retry intervals, socket options, and backlog size, allowing users to tune connection behavior and error handling.

include · high confidence

Introduce Marina 0.4.10 Cassandra/Scylla CQL client

Marina is a new high-performance Erlang client for Cassandra and ScyllaDB, supporting CQL protocol v4 with LZ4 compression, token-aware and random load-balancing, and an event-driven control connection for automatic topology synchronization. The library provides synchronous and asynchronous query APIs, prepared-statement caching with automatic re-preparation on server errors, and exposes telemetry events for request lifecycle monitoring.

src · high confidence

Behavioural changes

4 commits (0 fixes) modifying bin

A change to existing behaviour in bin — 4 commits, 1 file.

bin · medium confidence · unverified

Test coverage

Added unit tests for frame, buffer, cache, and event decoder

Added new test suites covering the core protocol components: \marina\_frame\_tests\ validates frame encoding/decoding roundtrips and partial frame handling; \marina\_buffer\_tests\ ensures correct buffering of split frames across chunks; \marina\_cache\_tests\ verifies cache put/get/erase operations including pool-scoped cleanup and server-index stripping; \marina\_body\_tests\ tests decoding of topology/status/schema change events, auth challenges, and response flags; \marina\_token\_tests\ validates M3P token generation; and \marina\_tests\ provides integration tests for queries, batches, paging, counters, and data types against a live Cassandra instance.

test · high confidence

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

How this codebase got here

Score

  • CAI 71 → 75 (+3.6)
  • Rubric changed (rubric-2026.09.12 → rubric-2026.09.18) — scores are not directly comparable.

Lenses

  • Code Health 98 → 98 (+0.0)
  • Architecture 100 → 100 (+0.0)
  • Maturity 67 → 67 (+0.0)
  • Readiness 73 → 75 (+1.9)
  • Security 65 → 76 (+11.8)
  • Event Sourcing 100 → 100 (+0.0)

Resolved (2)

  • Coverage not measured — no coverage collector is wired up
  • Documentation: no usage examples (README.md)

New (1)

  • Outdated: foil

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

Survey your own repository

lpgauth/marina 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 2 October 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
  • Measured at commit a7ac48b99f89582cba22c5668727630caf62786c — the exact code this score is about.
  • Scored under rubric-2026.09.18 — the same rubric and the same method as every other entry in this index.
  • Measured by watchdog.canine.dev using codehealth-analyzer preprod-e569280dd5e2.