搜索插件、代码仓与 APP 分类

插件详情v5.2.0

grpc

gRPC 的 Dart 实现,一个高性能、开源的通用 RPC 框架。

AndroidiOSmacOSWindowsLinux
近 30 天下载
57.6万
喜欢数
465
Pub 分数
150

安装插件

flutter pub add grpc

插件介绍

基于插件公开信息、社区数据与项目使用情况整理的选型参考。

grpc 包提供了 gRPC 的 Dart 实现,可在不同平台上实现高性能、可扩展的远程过程调用。它支持双向流、简单调用以及通过 Protocol Buffers 实现的高效序列化。专为低延迟通信设计,非常适合微服务和实时应用。该包可与 Flutter 及其他基于 Dart 的 Android、iOS、macOS、Windows 和 Linux 应用无缝集成。它利用了强大的 gRPC 生态系统,同时保持了 Dart 的异步编程模型。

适合场景

  • 微服务通信
  • 实时数据同步
  • 跨平台 API 集成
  • 高性能后端服务
  • 移动应用后端

主要特点

  • 支持双向流
  • 高效的 Protocol Buffer 序列化
  • 跨平台兼容性
  • 异步API设计
  • 与 Dart 的 async/await 集成

适合对象

  • 开发可扩展的 API
  • 在后端系统中使用 gRPC 的团队
  • 需要快速 RPC 的 Flutter 应用
  • 实时或低延迟应用
  • 需要与 gRPC 服务互操作的项目

使用建议

  • 需要协议缓冲区定义
  • 新用户的学习曲线更陡峭
  • 对外部 .proto 文件的依赖
  • 生产环境所需的网络配置
  • 与 REST 相比,内置错误处理功能有限

原始 README

以下为关联源码仓库的 README 原文快照,最新内容请访问源码仓库。

Dart pub package

The Dart implementation of gRPC: A high performance, open source, general RPC framework that puts mobile and HTTP/2 first.

Learn more

For complete documentation, see Dart gRPC.

Supported platforms

Note: grpc-web is supported by package:grpc/grpc_web.dart. UDS-unix domain socket is supported with sdk version >= 2.8.0.

Contributing

If you experience problems or have feature requests, open an issue.

Note that we have limited bandwidth to accept PRs, and that all PRs require signing the EasyCLA.

所属分类

依赖

依赖清单 10 项

源码仓库

使用此插件的项目

所在榜单