Skip to content

Small application that spins up a gRPC server to play around with tonic.

Notifications You must be signed in to change notification settings

maoertel/rust-grpc-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gRPC with tonic written in Rust

Small application that spins up a gRPC server to play around with tonic.

  1. Start the server with cargo run.
  2. Install an grpc application for commandline (on mac e.g. brew install grpc).
  3. Ask for a movie: grpc_cli call localhost:50051 moviestore.Moviestore.GetMovie "id: '73'".

The output should look as follows:

connecting to localhost:50051
Received initial metadata from server:
date : ...
id: "73"
title: "Lord of the Rings"
director: "Peter Jackson"
year: 2000
Rpc succeeded with OK status

About

Small application that spins up a gRPC server to play around with tonic.

Resources

Stars

Watchers

Forks

Languages