Giter Site home page Giter Site logo

armando1514 / grpc-introduction Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 542 KB

Introduction repo for gRPC (gRPC Remote Procedure Calls) a modern open source high performance Remote Procedure Call (RPC) framework. gRPC uses Protocol Buffers to encode data.

Java 100.00%
grpc protocol-buffers spring-boot

grpc-introduction's Introduction


gRPC INTRODUCTION

Repo based on this udemy course: gRPC the complete guide for java developers.

REPO STRUCTURE

  1. Folder - Protocol Buffers:

    • IDL (interface description language) for API

    • Platform neutral

    • Language neutral

    • Serializing/ Deserializing structured data

    • Optimized for interservices communication

    • Provides client libraries automatically for many languages.

  2. Folder - gRPC Introduction:

    • High-performance, open source RPC framework
    • Developed at Google
    • Client app directly invokes Server method on a different machine
    • Service is defined using proto.

    We will generate an abstract class, our interface in the .proto file, which needs to be implemented by the server. Through this policy tool, is it possible to generate automatically STUB in most of the languages. The client will be using that client library generated by the policy tool to interact with that server. Client's call generated by the stub are offered in Async or Sync fashion (in case of Async you need to register a callback for the async behavior). grpc-introduction

    There are 4 different types of RPC these days:

    • UNARY : One request—One response, RPC is completed once the client receives the response from the server.
    • SERVER-STREAMING: The client send one request and the server send multiple response (Streaming), can be multiple chunks of a pagination.
    • CLIENT-STREAMING: The client send multiple streaming request and the server send one response. An example is a file upload, a client maybe sending a file in small chunks and once it is completed the server sends back a response saying that the file was uploaded.
    • BIDIRECTIONAL-STREAMING: Completely independent, client can send many requests, as well as the server.

    rpc-types

  3. Folder - Spring boot integratrion project with gRPC and Protocol buffers:

    project-spring-boot

grpc-introduction's People

Stargazers

 avatar

Watchers

 avatar  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.