登录 注册
其他
1,530
Stars
—
Forks
0
Watchers
—
Open Issues
待补全
许可证
Elixir
语言
—
创建时间
最近更新

项目能做什么

gRPC 的 Elixir 语言实现。
来源:AI 基于仓库事实生成 · 内容以仓库实际 README 为准

使用说明 查看原始 README 原仓库文档

中文使用说明暂未生成。下面保留原仓库 README 摘录,命令与配置均以原文为准。
原始 README 摘录(英文原文,节选前 3000 字符)
# gRPC Elixir

[![GitHub CI](https://github.com/elixir-grpc/grpc/actions/workflows/ci.yml/badge.svg)](https://github.com/elixir-grpc/grpc/actions/workflows/ci.yml)
[![Hex.pm](https://img.shields.io/hexpm/v/grpc.svg)](https://hex.pm/packages/grpc)
[![Hex Docs](https://img.shields.io/badge/hex-docs-lightgreen.svg)](https://hexdocs.pm/grpc/)
[![License](https://img.shields.io/hexpm/l/grpc.svg)](https://github.com/elixir-grpc/grpc/blob/master/LICENSE)
[![Total Downloads](https://img.shields.io/hexpm/dt/grpc.svg)](https://hex.pm/packages/grpc)
[![Last Updated](https://img.shields.io/github/last-commit/elixir-grpc/grpc.svg)](https://github.com/elixir-grpc/grpc/commits/master)

**gRPC Elixir** is a full-featured Elixir implementation of the [gRPC](https://grpc.io) protocol, supporting unary and streaming RPCs, interceptors, HTTP transcoding, and TLS. This version adopts a unified stream-based model for all types of calls.

## Table of contents

- [Installation](#installation)
- [Protobuf Code Generation](#protobuf-code-generation)
- [Server Implementation](#server-implementation)
  - [Unary RPC using Stream API](#unary-rpc-using-stream-api)
  - [Server-Side Streaming](#server-side-streaming)
  - [Bidirectional Streaming](#bidirectional-streaming)
  - [Effects and Error Handling](#effects-and-error-handling)
    - [Side Effects](#side-effects-with-effect2)
    - [Recovery from errors](#recovery-from-errors)
    - [Unified Error Matching and Propagation](#unified-error-matching-and-propagation)
- [Application Startup](#application-startup)
- [Client Usage](#client-usage)
  - [Basic Connection and RPC](#basic-connection-and-rpc)
  - [Using Interceptors](#using-interceptors)
  - [Target Schemes and Resolvers](#target-schemes-and-resolvers)
    - [Supported formats](#supported-formats)
    - [Example (DNS)](#example-dns)
    - [Example (Unix socket)](#example-unix-socket)
  - [Compression and Metadata](#compression-and-metadata)
  - [Client Adapters](#client-adapters)
    - [Using Mint Adapter](#using-mint-adapter)
- [HTTP Transcoding](#http-transcoding)
- [CORS](#cors)
- [Features](#features)
- [Benchmark](#benchmark)
- [Contributing](#contributing)

## Installation

The package can be installed as:

```elixir
def deps do
  [
    {:grpc, "~> 0.11"},
    {:grpc_server, "~> 0.11"},
    {:protobuf, "~> 0.14"}, # optional for import wellknown google types
    {:grpc_reflection, "~> 0.2"} # optional enable grpc reflection
  ]
end
```

>**_Note (since v1.0.0-rc.1)_**: To use the server, you must add the :grpc_server dependency to your mix.exs instead of the older :grpc package.

## Protobuf Code Generation

Use `protoc` with [protobuf elixir plugin](https://github.com/elixir-protobuf/protobuf) or using [protobuf_generate](https://hexdocs.pm/protobuf_generate/readme.html) hex package to generate the necessary files.

1. Write your protobuf file:

```protobuf
syntax = "proto3";

package helloworld;

// The request message containing the user's name.
message HelloRe
阅读完整原文

项目深度分析 AI 生成

企业级技术支持与微服务互通咨询服务

产品构想针对在生产环境运行 Elixir 且需要与多语言 gRPC 集群交互的企业,提供架构设计、代码审查、版本升级迁移(如适应 1.0 stream-based API 重构)及紧急 SLA 故障排查。
核心功能定制化架构指导;升级/迁移技术支持;高并发性能调优;7x24 紧急事故响应协议。
目标用户使用 Elixir 作为高并发网关或微服务、且缺乏资深 BEAM/gRPC 专家的中大型技术团队(推测)。
难度/周期中等 · 1 - 3 个月 · 成本:人力时间成本、客户支持与沟通成本
收费模式年费支持协议订阅(Retainer)、按次/天计费的高级咨询费。
竞争风险Elixir 开发者基数相较主流语言较小,企业客户池有限且获客周期较长。
依据 已验证事实

gRPC Elixir 生态企业级中间件与可观测性扩展包

产品构想基于现有 Interceptor 机制,开发专有的企业级插件套件,覆盖 OpenTelemetry 分布式链路追踪、Prometheus 细粒度指标上报、Rate-limiting 限流与 JWT/mTLS 安全认证。
核心功能即插即用的 Interceptor 集合;标准化 Prometheus/OpenTelemetry 监控看板;细粒度限流熔断策略;企业级认证鉴权中间件。
目标用户需要满足金融合规、企业级审计和可观测性要求的 Elixir 研发团队(推测)。
难度/周期中等 · 2 - 4 个月 · 成本:开发与多环境兼容性测试成本
收费模式双重许可协议(针对开源免费,闭源商业场景按节点/席位售卖商业许可证)或源码级商业分发。
竞争风险开源社区可能自行出现轻量级免费替代方案,导致付费意愿降低。
依据 AI推测

gRPC 管理控制台与调试网关(针对 BEAM 栈)

产品构想结合 grpc_reflection 与 HTTP Transcoding 特性,提供开箱即用的 Web 管理后台与测试平台,支持动态服务发现、在线 RPC 模拟调用、实时 Stream 流量监控与协议转换控制。
核心功能基于反射的 gRPC 服务自动发现界面;双向流(Streaming)实时调试控制台;跨环境 HTTP-to-gRPC 网关代理配置界面;实时错误与流量监控面板。
目标用户后端研发、QA 测试工程师及 DevOps 工程师。
难度/周期高 · 3 - 6 个月 · 成本:全栈开发成本、前端交互设计、测试基础设施投入
收费模式免费开源社区版 + 商业版(单点登录 SSO、角色权限 RBAC、企业多集群管理付费)。
竞争风险市场上存在通用 gRPC 调试工具(如 Postman、BloomRPC、Kreya),专属于 Elixir 栈的产品需要突出生态深度集成优势。
依据 尚需验证的假设
AI 基于仓库公开数据分析生成,含推测成分,不构成收益承诺。
报告会保存到 个人中心

竞品与相似项目 GitHub Search 真实检索

相似项目数据正在完善中,暂不展示(避免误导)

项目优势与风险

技术成熟度创建时间待补全,最近推送 ,发布过 19 个 Release
社区活跃Star 1,530 / Fork 0 / Issue 0(数据支持,可自行核实)
许可证未检测到(需人工确认)
主要风险上游项目方向可能变化;同赛道竞争者较多(见竞品表);热度与需求不完全等价

安装与使用

此项目未提供 Docker 镜像,安装步骤以原仓库 README 为准(涉及依赖安装与环境配置,对新手门槛较高)。