Giter Site home page Giter Site logo

fzankl / grpc-sample Goto Github PK

View Code? Open in Web Editor NEW
8.0 1.0 0.0 16 KB

Example how to work with gRPC using .NET Core / ASP.NET Core and Python

Home Page: https://www.fzankl.de/en/blog/distributed-services-using-grpc-in-dotnet-and-python

License: MIT License

C# 100.00%
grpc grpc-go grpc-server grpc-client grpc-python grpc-node grpc-sample client-streaming-rpc server-streaming-rpc python

grpc-sample's Introduction

gRPC Sample

Example how to work with gRPC using .NET Core/ASP.NET Core and Python.


This example shows how to work with gRPC using .NET and Python. gRPC Server is provided by an ASP.NET Core backend. Each client shows then how to connect and interact with this server.

Examples consider all available communication patters of gRPC:

  • Unary RPCs
  • Server streaming RPCs
  • Client streaming RPCs
  • Bidirectional streaming RPCs

Current state of implementation:

  • ASP.NET Core Server
    • Unary RPC
    • Server streaming RPC
    • Client streaming RPC
    • Bidirectional streaming
  • ASP.NET Core Client
    • Unary RPC
    • Server streaming RPC
    • Client streaming RPC
    • Bidirectional streaming
  • Python Client (in progress)
    • Unary RPC
    • Server streaming RPC
    • Client streaming RPC
    • Bidirectional streaming

Further information: https://www.fzankl.de/en/blog/distributed-services-using-grpc-in-dotnet-and-python

How to run this sample

To run this sample you have to start the ASP.NET Core Server project first. Navigate to src\ASP.NET Core - GrpcServer inside the repository and run following command (Requires .NET Core Runtime installed):

dotnet run

After that you can start the client you prefer, e.g. the .NET Core gRPC client application as shown in following figure:

Output from .NET Core client application

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.