Skip to content
CAI
Software that uses CAICheck a score

elixir-grpc/grpc

58.4

Adequate · 13 November 2026

15.4k

lines of production code

Elixir

primary language

8

measurements over time

CAI band scale
CAI trend line
CAI lens gauges

What this system is

Features

Add benchmarking infrastructure and scripts

Introduces new scripts and configuration files to support gRPC benchmarking. This includes a shell script to generate Elixir code from protobuf definitions, a test script to configure and run client-server benchmark scenarios, and a worker script to manage gRPC server processes. These changes enable users to execute performance tests and collect statistics from the benchmarking suite.

benchmark/bin · high confidence

Add gRPC benchmarking server and protocol buffers

The benchmarking library now includes a gRPC-based worker server implementation and the corresponding protocol buffer definitions. This adds the \BenchmarkService\ and \WorkerService\ definitions, along with message types for client/server configuration, statistics, and payloads, enabling the benchmark tool to control and monitor gRPC server and client processes via RPC calls.

benchmark/lib/grpc · high confidence

Add gRPC interop test server and client

This change introduces a new interop test suite for the gRPC library, providing both a server and a client implementation to validate protocol compliance. The server, defined in \Interop.Server\, implements the standard \TestService\ methods (including unary, client/server streaming, and full-duplex calls) with support for Gzip compression and custom metadata echoing. The accompanying \Interop.Client\ exercises these endpoints to verify behavior, while \Interop.App\ configures the server to listen on port 10000.

interop/lib/interop · high confidence

Added gRPC benchmark protocol definitions

New Protocol Buffer definitions have been added to the \benchmark/proto\ directory to support gRPC performance testing. This includes the \BenchmarkService\ and \WorkerService\ RPCs for orchestrating load tests, along with message schemas for client/server configuration (\control.proto\), payload structures (\messages.proto\, \payloads.proto\), and statistical reporting (\stats.proto\, \core/stats.proto\). These files define the interface for running unary and streaming benchmarks and collecting metrics like latency histograms and CPU usage.

benchmark/proto · high confidence

Added interop test harness for gRPC interoperability testing

A new interop directory has been introduced to support gRPC interoperability testing, including a Makefile for generating Protobuf definitions, configuration files for code formatting and build artifacts, and a script to execute the tests. The core module previously located at lib/grpc.ex has been renamed to interop/lib/interop.ex to reflect this new scope.

interop · high confidence

Initial release of gRPC Elixir with Apache 2.0 license and Docker support

This entry marks the initial commit of the gRPC Elixir project, establishing the foundational structure for the library. It introduces the Apache 2.0 license, a Dockerfile for containerized builds, and a \.formatter.exs\ configuration that organizes the codebase into \grpc\_core\, \grpc\_server\, and \grpc\ subdirectories. The release also includes a \SECURITY.md\ policy defining supported versions (1.0.0-rc.1 and \>= 0.11.0) and a comprehensive README detailing installation, protobuf code generation, and the new stream-based API for server and client implementations.

(repo-wide) · high confidence

Initial release of the grpc\_server package

The gRPC server implementation has been separated from the client into a distinct \grpc\_server\ package (v1.0.0), requiring users to add \{:grpc\_server, "\~\> 1.0"}\ to their dependencies instead of the legacy \:grpc\ package. This release introduces a unified stream-based API for all RPC types, adds support for gRPC-Web trailers encoded in the message body, and surfaces the inbound gRPC deadline on \GRPC.Server.Stream\ for better deadline budget propagation. It also includes several bug fixes such as safer decoding for the erlpack codec, configurable request body size limits, and corrected handling of path parameters in HTTP transcoding. Also in this area: 2 commits (1 fix) modifying grpc\_core.

_grpc\core · medium confidence · unverified

Initial release of the grpc\_server package

The gRPC server implementation has been separated from the client into a distinct \grpc\_server\ package (v1.0.0), requiring users to add \{:grpc\_server, "\~\> 1.0"}\ to their dependencies instead of the legacy \:grpc\ package. This release introduces a unified stream-based API for all RPC types, adds support for gRPC-Web trailers encoded in the message body, and surfaces the inbound gRPC deadline on \GRPC.Server.Stream\ for better deadline budget propagation. It also includes several bug fixes such as safer decoding for the erlpack codec, configurable request body size limits, and corrected handling of path parameters in HTTP transcoding. Also in this area: 3 commits (1 fix) modifying grpc\_server; 6 commits (4 fixes) fixing grpc\_server; 2 commits (0 fixes) modifying grpc\_server.

_grpc\server/lib · medium confidence · unverified

New gRPC benchmark tool with Mix tasks and syscall NIF

Adds a new benchmarking tool for gRPC performance testing. Users can now run benchmarks via Mix tasks (\mix benchmark.worker\ to start a server, \mix benchmark.test\ to run tests) which replace legacy scripts. The tool includes a custom NIF (\Benchmark.Syscall\) wrapping the \getrusage\ syscall to capture detailed resource usage statistics during benchmark runs.

benchmark · high confidence

New interop test runner script for GRPC client adapters

A new Elixir script at interop/script/run.exs has been added to execute the gRPC interop test suite. This script launches a local server endpoint and iterates through a defined set of client-side interop tests (such as unary, streaming, and compression scenarios) against both the Gun and Mint client adapters using configurable concurrency and round counts.

interop/script · high confidence

Security

Introduce hardened erlpack codec and gzip decompression limits

The core library now includes a new \GRPC.Codec.Erlpack\ that mitigates [CVE redacted] by using \:erlang.binary\_to\_term/2\ with the \:safe\ option and rejecting payloads containing functions, pids, ports, or references. Additionally, the \GRPC.Compressor.Gzip\ implementation now enforces a configurable maximum decompressed message size (defaulting to 4 MB) to prevent zip-bomb denial-of-service attacks, raising a \resource\_exhausted\ error if the limit is exceeded.

_grpc\core/lib · high confidence

Behavioural changes

1 commit (0 fixes) modifying benchmark/lib/mix, grpc\_server/config, grpc\_server/guides/cheatsheets

A change to existing behaviour in benchmark/lib/mix, grpc\_server/config, grpc\_server/guides/cheatsheets — 1 commit, 5 files: “\[Feat\]: separating client and server into two distinct packages (\#477)” (refs \#477).

_benchmark/lib/mix, grpc\_server/config, grpc\server/guides/cheatsheets · low confidence · unverified

2 commits (1 fix) modifying grpc\_server/priv

A change to existing behaviour in grpc\_server/priv — 2 commits (1 fix), 4 files: “\[Feat\]: separating client and server into two distinct packages (\#477)”; “fix: make GRPC.Stub generation opt-out for server-only protoc runs (\#553)” (refs \#477, \#553).

_grpc\server/priv · medium confidence · unverified

Benchmark logging configuration established

The benchmark environment now includes explicit configuration files that control logging verbosity based on the environment. In development, logging is set to info level, while production and test environments default to warning level, ensuring that benchmark runs do not produce excessive log output during execution or testing.

benchmark/config · high confidence

Default logger level set to warning for interop

The interop component now configures the application logger to default to the :warning level, reducing the volume of informational and debug output for this specific part of the system.

interop/config · high confidence

Refactored benchmark into distinct client and server components with detailed stats collection

The benchmark tool has been restructured to separate client and server logic into dedicated modules (ClientManager, ClientWorker, ServerManager, Server). This change introduces support for both unary and streaming RPC calls, allowing users to benchmark different load patterns. Additionally, the benchmark now collects and returns detailed performance statistics, including CPU time (user and system), elapsed time, and latency histograms, providing more granular insights into benchmark results.

benchmark/lib/benchmark · high confidence

Removal of legacy config/config.exs file

The project has removed the main configuration file (config/config.exs) which previously used the deprecated Mix.Config module. This change indicates a migration to a newer configuration approach, likely using the Config module introduced in Elixir 1.11+, requiring users to update their configuration setup to align with the new standards.

config · high confidence

Updated gRPC interop test definitions to protobuf 0.10

The generated Elixir protobuf files in the interop testing library have been regenerated using protoc-gen-elixir version 0.10.0. This update refreshes the generated modules for the gRPC testing services (including TestService, ReconnectService, LoadBalancerStatsService, and XDS services) and their associated message types, ensuring compatibility with the upgraded protobuf library version.

_interop/lib/grpc\testing · high confidence

Fixes

6 commits (4 fixes) fixing grpc\_server

A fix in grpc\_server — 6 commits (4 fixs), 11 files: “fix(server): keep each server's routes apart; wait for the client in the connection age test (\#649)”; “fix(server): stop a late ack and a wrong status after a send\_reply timeout (\#638)”; “fix(client): send new calls to a new connection after a Mint GOAWAY (\#648)”; and 3 more (refs \#649, \#638, \#648, \#643, \#640, …). Also in this area: 3 commits (1 fix) modifying grpc\_server; 2 commits (0 fixes) modifying grpc\_server; Initial release of the grpc\_server package.

(repo-wide) · medium confidence · unverified

Test coverage

Added benchmark test suite; Added test suite for gRPC core components.

Dependencies

Upgrade to gRPC v1.0.5 and update core dependencies

The gRPC client, server, and core libraries are upgraded to version 1.0.5, establishing the new baseline for the release. This update aligns the project with \protobuf\ 0.17, \gun\ 2.4.1, and \cowboy\ 2.16, ensuring compatibility with the latest Elixir 1.15+ requirements and resolving underlying dependency constraints across the client, server, and benchmark components.

(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 61 → 58 (-2.7)
  • Rubric changed (rubric-2026.10.5 → rubric-2026.11.3) — scores are not directly comparable.

Lenses

  • Code Health 74 → 94 (+20.4)
  • Architecture 86 → 84 (-2.1)
  • Maturity 65 → 50 (-15.0)
  • Readiness 50 → 50 (+0.1)
  • Security 78 → 77 (-1.0)

Resolved (24)

  • Disclosure policy has no reporting contact
  • Duplicated block (5 lines × 2) (grpc/lib/grpc/client/adapters/gun/connection_process.ex)
  • FileTooLong: client/connection.ex (grpc/lib/grpc/client/connection.ex)
  • High CVE: [GHSA redacted] (mix.lock)
  • High CVE: [GHSA redacted] (interop/mix.lock)
  • Medium CVE: EEF-[CVE redacted] (grpc/mix.lock)
  • Medium CVE: EEF-[CVE redacted] (grpc/mix.lock)
  • Medium CVE: EEF-[CVE redacted] (grpc/mix.lock)
  • Medium CVE: [GHSA redacted] (grpc/mix.lock)
  • Off the main sequence: grpc
  • Off the main sequence: grpc_server
  • Off-boarding risk: anonymized user #1
  • Orphaned file (grpc_server/lib/grpc/server/adapters/cowboy.ex)
  • Orphaned file (grpc_server/src/grpc_stream_h.erl)
  • Outdated: protobuf
  • Outdated: protobuf
  • Repeated repair: grpc/lib/grpc/client/adapters/gun/connection_process.ex (grpc/lib/grpc/client/adapters/gun/connection_process.ex)
  • Repeated repair: grpc/lib/grpc/client/adapters/gun/stream_response_process.ex (grpc/lib/grpc/client/adapters/gun/stream_response_process.ex)
  • Repeated repair: grpc/lib/grpc/client/connection.ex (grpc/lib/grpc/client/connection.ex)
  • Repeated repair: grpc/lib/grpc/client/resolver.ex (grpc/lib/grpc/client/resolver.ex)
  • …and 4 more

New (40)

  • Disclosure policy has no reporting contact (SECURITY.md)
  • Duplicated block (12 lines × 2) (grpc_core/lib/grpc/message.ex)
  • Duplicated block (27 lines × 2) (grpc/lib/grpc/health/v1/health.pb.ex)
  • Duplicated block (6 lines × 2) (grpc/lib/grpc/client/adapters/gun/connection_process.ex)
  • Duplicated block (8 lines × 2) (grpc/lib/grpc/client/adapters/gun.ex)
  • Edited copy of a member (1 corresponding lines) (grpc/lib/grpc/client/interceptors/logger.ex)
  • Edited copy of a member (12 corresponding lines) (grpc/lib/grpc/client/adapters/gun.ex)
  • Edited copy of a member (13 corresponding lines) (grpc/lib/grpc/client/adapters/gun.ex)
  • Edited copy of a member (15 corresponding lines) (grpc/lib/grpc/client/adapters/gun.ex)
  • Edited copy of a member (15 corresponding lines) (interop/lib/interop/client.ex)
  • Edited copy of a member (17 corresponding lines) (grpc/lib/grpc/client/adapters/mint/connection_process/connection_process.ex)
  • Edited copy of a member (19 corresponding lines) (grpc_core/lib/grpc/message.ex)
  • Edited copy of a member (2 corresponding lines) (grpc/lib/grpc/client/adapters/gun/connection_process.ex)
  • Edited copy of a member (22 corresponding lines) (interop/lib/interop/client.ex)
  • Edited copy of a member (3 corresponding lines) (grpc/lib/grpc/client/adapters/gun/connection_process.ex)
  • Edited copy of a member (3 corresponding lines) (grpc/lib/grpc/stub.ex)
  • Edited copy of a member (4 corresponding lines) (grpc/lib/grpc/client/connection.ex)
  • Edited copy of a member (4 corresponding lines) (interop/lib/interop/client.ex)
  • Edited copy of a member (6 corresponding lines) (grpc/lib/grpc/client/adapters/gun.ex)
  • Edited copy of a member (7 corresponding lines) (grpc/lib/grpc/client/adapters/gun/connection_process.ex)
  • …and 20 more

Changes since last survey

  • 63 commits — 29 feature/other, 34 fixes

By area

  • grpc/lib — 20 commits
  • grpc/CHANGELOG.md — 16 commits
  • grpc/test — 8 commits
  • grpc_server/lib — 7 commits
  • grpc_server/CHANGELOG.md — 3 commits
  • grpc_server/test — 3 commits
  • (root) — 2 commits
  • .github/workflows — 1 commit
  • grpc_core/CHANGELOG.md — 1 commit
  • grpc_core/lib — 1 commit
  • grpc_core/test — 1 commit

Notable commits

  • fix: fix(client): check the reply length prefix inside grpc, so the receive tests run in CI (#628)
  • fix: fix(client): connect to IPv6 targets with both adapters (#622)
  • fix: fix(client): keep interceptor headers across processes (#642)
  • fix: fix(client): pass dns:// hostname to Mint for TLS SNI and verification (#575)
  • fix: fix(client): redact request headers and body from connection-process call exits (#608)
  • fix: fix(client): send new calls to a new connection after a Mint GOAWAY (#648)
  • fix: fix(client): send no headers message after the interceptor wrapper closed (#645)
  • fix: fix(gun): don't block other connects while a handshake is in progress (#615)
  • fix: fix(gun): reject a response window under one frame, and test stalled streams (#639)
  • fix: fix(gun): reject an initial_stream_window_size under one frame (#641)
  • fix: fix(gun): return UNAVAILABLE after Gun gives up, also with the pool (#624)
  • fix: fix(gun): return UNAVAILABLE when the connection process is gone (#621)
  • fix: fix(mint): add keepalive feature using HTTP/2 pings (#600)
  • fix: fix(mint): disconnect gives :ok when the connection process is dead (#647)
  • fix: fix(mint): drop queued chunks when cancelling requests (#595)
  • fix: fix(mint): explicitly support infinite retries (#579)
  • fix: fix(mint): fail with UNAVAILABLE when the connection drops (#581)
  • fix: fix(mint): prevent duplicate reconnect retries (#601)
  • fix: fix(mint): reject unknown adapter options and add a TLS guide (#626)
  • fix: fix(mint): reply to disconnect before closing, and fix a setup race in a test (#644)
  • …and 43 more

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

Survey your own repository

elixir-grpc/grpc 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 13 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 61a71948e6e7b95efb27d48e7084c764503cc802 — the exact code this score is about.
  • Scored under rubric-2026.11.3 — 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.57+preprod-8ebfb01cf4c0.