GithubHelp home page GithubHelp logo

grpc-netcore-demo's Introduction

gRPC .NET Core Demo

Demo of gRPC server and client in .NET Core.

Getting Started

  1. Clone Repo.
  2. Open Solution within Visual Studio.
  3. Run and follow instructions within the client terminal. (Both client and server are configured as a multiple startup option).

Solution Structure

This solution contains two projects, a gRPC client and a gRPC Server. Each project contains the .proto files to generate the underlying language specific templates for the gRPC connection to run. Those templates are generated on compilation due to the inclusion of the grpc.tools nuget package. Specific properties on the .proto files govern the expectations around the generated files. The gRPC routes are mapped into dotnet core within startup.cs. The solution is configured to run both the server and client when run simultaneously within Visual Studio (2019).

About gPRC

gRPC is a language agnostic, high-performance Remote Procedure Call (RPC) framework.

The main benefits of gRPC are:

Modern, high-performance, lightweight RPC framework. Contract-first API development, using Protocol Buffers by default, allowing for language agnostic implementations. Tooling available for many languages to generate strongly-typed servers and clients. Supports client, server, and bi-directional streaming calls. Reduced network usage with Protobuf binary serialization. These benefits make gRPC ideal for:

Lightweight microservices where efficiency is critical. Polyglot systems where multiple languages are required for development. Point-to-point real-time services that need to handle streaming requests or responses.

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.