qmetrics.net

gRPC Elixir

Full-featured gRPC client and server library for Elixir

gRPC Elixir screenshot

gRPC Elixir implements the gRPC protocol with unary and streaming RPCs, interceptors, TLS, and HTTP transcoding. Servers and clients use a unified stream-based API.

Overview

gRPC Elixir is an Elixir implementation of the gRPC protocol for building RPC clients and servers. It supports unary calls, server-side streaming, bidirectional streaming, interceptors, compression, metadata, TLS, and HTTP transcoding for browser or REST-style access.

Servers define services with a stream-based API where even unary requests flow through stream operators such as map, effect, run, and maperror for transformation, side effects, and structured error handling. Applications supervise GRPC.Server.Endpoint modules and register generated services from protobuf definitions.

Clients connect with URI-like targets resolved through an internal resolver, including DNS, IPv4, Unix domain sockets, and xDS endpoints. Adapters include Gun by default and optional Mint for pure Elixir HTTP/2, with automatic reconnection and keepalive options on Mint. Interceptors extend logging, tracing, and authentication on both sides.

Protobuf code is generated with protoc and Elixir plugins or helper packages. Optional HTTP transcoding and a CORS interceptor support browser clients. The Hex package splits client (:grpc) and server (:grpc_server) dependencies in current releases.

Key features

  • Unary and streaming RPCs
  • Unified stream-based server API
  • Client and server interceptors
  • DNS, Unix, and xDS targets
  • Gun and Mint client adapters
  • HTTP transcoding support
  • CORS interceptor for browsers
  • TLS and message compression

Use cases

  • Elixir microservices over gRPC
  • Bidirectional streaming services
  • gRPC with HTTP transcoding
  • Browser-facing gRPC via CORS
  • Fault-tolerant stream pipelines

Tags

Similar software

FastAPI

Python web framework for building APIs with type hints

FastAPI is a Python web framework for building APIs using standard type hints. It builds on Starlette and Pydantic and generates interactive OpenAPI documentation for the endpoints you define.

★ 105.1k⟳ 9 days agoMIT

NestJS

Progressive TypeScript framework for Node.js backends

Nest organizes Node server apps with modules, dependency injection, and first-party packages for auth, data, queues, and observability.

★ 77.2k⟳ todayMIT

OkHttp

HTTP client for JVM, Android, and GraalVM

OkHttp is an HTTP client library tuned for efficient networking on Android, Java, and GraalVM native images. It offers synchronous and asynchronous call APIs with a fluent request builder.

★ 47.1k⟳ yesterdayApache-2.0
Frameworks & PlatformsDesktop/CLI app

gRPC

Cross-language remote procedure call framework

gRPC is an RPC framework that lets client and server programs communicate transparently and supports building connected, multi-language systems.

★ 45.5k⟳ todayApache-2.0

tRPC

End-to-end typesafe TypeScript APIs without code generation

tRPC helps teams define server procedures and call them from clients with full TypeScript types for inputs, outputs, and errors—no schemas or codegen step.

★ 40.9k⟳ todayMIT
Frameworks & PlatformsDesktop/CLI app

go-zero

Cloud-native Go microservices and RPC framework

go-zero is a Go web and RPC framework with code generation, built-in resilience middleware, and tooling aimed at stable high-traffic services.

★ 33.5k⟳ 9 days agoMIT