All Projects → hyperium → Tonic

hyperium / Tonic

Licence: mit
A native gRPC client & server implementation with async/await support.

Programming Languages

rust
11053 projects

Projects that are alternatives of or similar to Tonic

Grpc Go
The Go language implementation of gRPC. HTTP/2 based RPC
Stars: ✭ 15,042 (+240.16%)
Mutual labels:  grpc, rpc, proto
Lnd Grpc Client
A python grpc client/async client for LND ⚡⚡⚡
Stars: ✭ 26 (-99.41%)
Mutual labels:  grpc, rpc, async
drpc
drpc is a lightweight, drop-in replacement for gRPC
Stars: ✭ 1,014 (-77.07%)
Mutual labels:  grpc, rpc, proto
Mu Haskell
Mu (μ) is a purely functional framework for building micro services.
Stars: ✭ 215 (-95.14%)
Mutual labels:  grpc, rpc
Vertx Zero
Zero Framework:http://www.vertxup.cn
Stars: ✭ 320 (-92.76%)
Mutual labels:  grpc, async
Magiconion
Unified Realtime/API framework for .NET platform and Unity.
Stars: ✭ 2,505 (-43.35%)
Mutual labels:  grpc, rpc
Go Micro Boilerplate
The boilerplate of the GoLang application with a clear microservices architecture.
Stars: ✭ 147 (-96.68%)
Mutual labels:  grpc, rpc
grpc-jwt-spring-boot-starter
Spring boot starter for gRPC framework with JWT authorization
Stars: ✭ 24 (-99.46%)
Mutual labels:  grpc, proto
Ttrpc
GRPC for low-memory environments
Stars: ✭ 236 (-94.66%)
Mutual labels:  grpc, rpc
Gb28181.solution
Linux/Win/Docker/kubernetes/Chart/Kustomize/GB28181/SIP/RTP/SDP/WebRTC/作为上下级域/平台级联互联
Stars: ✭ 323 (-92.7%)
Mutual labels:  grpc, rpc
tsrpc
A TypeScript RPC framework, with runtime type checking and serialization, support both HTTP and WebSocket. It is very suitable for website / APP / games, and absolutely comfortable to full-stack TypeScript developers.
Stars: ✭ 866 (-80.42%)
Mutual labels:  grpc, rpc
Go Grpc Examples
This repo contains examples and implementations of different types of GRPC services and APIs using Golang.
Stars: ✭ 180 (-95.93%)
Mutual labels:  grpc, rpc
Evans
Evans: more expressive universal gRPC client
Stars: ✭ 2,710 (-38.72%)
Mutual labels:  grpc, rpc
thinkgo
Public libraries and components for glang development.
Stars: ✭ 14 (-99.68%)
Mutual labels:  grpc, rpc
Yarpc Go
A message passing platform for Go
Stars: ✭ 285 (-93.55%)
Mutual labels:  grpc, rpc
Ginrpc
gin auto binding,grpc, and annotated route,gin 注解路由, grpc,自动参数绑定工具
Stars: ✭ 157 (-96.45%)
Mutual labels:  grpc, rpc
rpc ts
Remote Procedure Calls in TypeScript made simple 🤞
Stars: ✭ 71 (-98.39%)
Mutual labels:  grpc, rpc
Purerpc
Asynchronous pure Python gRPC client and server implementation supporting asyncio, uvloop, curio and trio
Stars: ✭ 125 (-97.17%)
Mutual labels:  grpc, rpc
Go Grpc
A collection of gRPC and Go examples showcasing features of the framework
Stars: ✭ 127 (-97.13%)
Mutual labels:  grpc, rpc
Armeria
Your go-to microservice framework for any situation, from the creator of Netty et al. You can build any type of microservice leveraging your favorite technologies, including gRPC, Thrift, Kotlin, Retrofit, Reactive Streams, Spring Boot and Dropwizard.
Stars: ✭ 3,392 (-23.29%)
Mutual labels:  grpc, rpc

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

tonic is a gRPC over HTTP/2 implementation focused on high performance, interoperability, and flexibility. This library was created to have first class support of async/await and to act as a core building block for production systems written in Rust.

Crates.io Documentation Crates.io

Examples | Website | Docs | Chat

Overview

tonic is composed of three main components: the generic gRPC implementation, the high performance HTTP/2 implementation and the codegen powered by prost. The generic implementation can support any HTTP/2 implementation and any encoding via a set of generic traits. The HTTP/2 implementation is based on hyper, a fast HTTP/1.1 and HTTP/2 client and server built on top of the robust tokio stack. The codegen contains the tools to build clients and servers from protobuf definitions.

Features

  • Bi-directional streaming
  • High performance async io
  • Interoperability
  • TLS backed by rustls
  • Load balancing
  • Custom metadata
  • Authentication
  • Health Checking

Getting Started

Examples can be found in examples and for more complex scenarios interop may be a good resource as it shows examples of many of the gRPC features.

If you're using rust-analyzer we recommend you set "rust-analyzer.cargo.loadOutDirsFromCheck": true to correctly load the generated code.

Rust Version

tonic currently works on Rust 1.56 and above as it requires support for the 2018 edition.

$ rustup update
$ rustup component add rustfmt
$ cargo build

Tutorials

  • The helloworld tutorial provides a basic example of using tonic, perfect for first time users!
  • The routeguide tutorial provides a complete example of using tonic and all its features.

Getting Help

First, see if the answer to your question can be found in the API documentation. If the answer is not there, there is an active community in the Tonic Discord channel. We would be happy to try to answer your question. If that doesn't work, try opening an issue with the question.

Project Layout

Contributing

🎈 Thanks for your help improving the project! We are so happy to have you! We have a contributing guide to help you get involved in the Tonic project.

License

This project is licensed under the MIT license.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in Tonic by you, shall be licensed as MIT, without any additional terms or conditions.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].