Giter Site home page Giter Site logo

grpc-kata's Introduction

gRPC in Go, C#, and Java: A microservices code Kata

In this repo, we have the same Hello World service written in three langaues, Java, Go, and C#. This repo demonstrates how to use the gRPC framework from each language, and how gRPC facilitates cross-language interoperability.

What is gRPC

"gRPC is a modern open source high performance RPC framework" - grpc.io

gRPC diagram

Why gRPC?

  • Multiplexed RPC
  • Bi-directional streaming
  • Strong community ecosystem
  • Strong security - mTLS 🔐
  • First-class observability 👀 - metrics and tracing built in
  • Well defined separation of concerns - interceptors for middleware

Where does gRPC fit?

  • 🔥Works great behind the firewall
  • 📱Works great with mobile clients
  • 💻Works in the browser

Basic gRPC workflow

  1. Add library dependencies
  2. Write proto service contract
  3. Generate client and server stubs
  4. Implement server stub and start server
  5. Call service with client stub

Building

This repo is divided into three subdirectories, one for each language. There are also a series of git tags you can progress through to see each gRPC example progress one at a time. See the readme in each subdirectory for language specific details.

grpc-kata's People

Contributors

rmichela avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

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.