搜尋套件、儲存庫與 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 結合
  • 高性能後端服務
  • 行動應用後端

主要特色

  • 支援雙向串流
  • 高效協議緩衝區序列化
  • 跨平台相容性
  • 非同步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 項

原始碼儲存庫

使用此套件的專案

所在榜單