Skip to content
CAI
Software that uses CAICheck a score

emqx/pulsar-client-erl

61.3

Adequate · 15 November 2026

3.8k

lines of production code

Erlang

primary language

4

measurements over time

CAI band scale
CAI trend line
CAI lens gauges

What this system is

This system is an Erlang and Elixir client library for Apache Pulsar that enables asynchronous and synchronous message production and consumption. It provides core capabilities including supervised client management, authentication, telemetry integration, and resilience features like replay queues for handling connection outages. The library also supports interoperability with other languages and includes comprehensive testing for reliability and cross-language consistency.

Features

Initial release of the Erlang Pulsar client library

This change introduces the initial version of the Apache Pulsar client for Erlang/Elixir, providing core capabilities for asynchronous and synchronous message production, consumer subscriptions, and supervised client/producer management. The release includes support for binary URLs, per-request callbacks, health checks, and authentication (basic and token). It also features a replay queue for buffering messages during connection outages, telemetry integration, and configurable memory pressure handling via the \drop\_if\_high\_mem\ option. The package depends on Erlang OTP 24+ and includes a comprehensive test suite with CI configuration for various Pulsar and OTP versions.

(repo-wide), src · high confidence

Behavioural changes

Add internal header definitions for metrics and producer messaging

New header files have been added to the include directory to support internal implementation details. The pulsar.hrl file defines the ETS table name used for metrics (pulsar\_metrics), while pulsar\_producer\_internal.hrl defines the message structure for producer send requests, enabling consistent internal communication patterns.

include · high confidence

Test coverage

Added comprehensive Common Test suites and utilities for Pulsar client resilience and authentication; Added interop test for Erlang producer and Python consumer with Key\_Shared strategy.

Dependencies

Initial Elixir project configuration with dependency definitions

The project now includes a mix.exs file that defines the Elixir application structure, specifying Elixir version 1.13+ and listing external dependencies such as telemetry 1.3.0, crc32cer, murmerl3, snappyer, replayq, snabbkaffe, and lc, along with development-only tools like redbug.

(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 57 → 61 (+4.8)
  • Rubric changed (rubric-2026.10.5 → rubric-2026.11.4) — scores are not directly comparable.

Lenses

  • Code Health 73 → 71 (-1.8)
  • Architecture 99 → 99 (-0.2)
  • Maturity 50 → 50 (+0.0)
  • Readiness 43 → 58 (+14.4)
  • Security 89 → 89 (+0.0)
  • Event Sourcing 100 → 100 (+0.0)

Resolved (2)

  • Leaked secret: high-entropy-secret (docker-compose.yml)
  • Off-boarding risk: anonymized user #1

New (11)

  • Edited copies of one member (3 members, 7+ corresponding lines) (src/pulsar_socket.erl)
  • Edited copies of one member (3 members, 8+ corresponding lines) (src/pulsar_client_sup.erl)
  • Edited copies of one member (4 members, 4+ corresponding lines) (src/pulsar_client.erl)
  • Edited copy of a member (14 corresponding lines) (src/pulsar_client_manager.erl)
  • Edited copy of a member (16 corresponding lines) (src/pulsar_client_manager.erl)
  • Edited copy of a member (2 corresponding lines) (src/pulsar_consumers.erl)
  • Edited copy of a member (3 corresponding lines) (src/pulsar_consumers.erl)
  • Edited copy of a member (4 corresponding lines) (src/pulsar_client.erl)
  • Edited copy of a member (4 corresponding lines) (src/pulsar_consumers.erl)
  • Edited copy of a member (5 corresponding lines) (src/pulsar_client.erl)
  • Off-boarding risk: anonymized user #1

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

Survey your own repository

emqx/pulsar-client-erl 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 15 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 7dc5cf2e78ee422438bb93bda90f2a0c193b4fb4 — the exact code this score is about.
  • Scored under rubric-2026.11.4 — 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.65+preprod-3c33c1882dc1.