Giter Site home page Giter Site logo

s-you / gcegrpc Goto Github PK

View Code? Open in Web Editor NEW

This project forked from salrashid123/gcegrpc

0.0 2.0 0.0 793 KB

gRPC client/server running loadbalanced/failover on Google Compute Engine and Google App Engine

License: Apache License 2.0

Dockerfile 21.26% Go 57.08% JavaScript 21.66%

gcegrpc's Introduction

gRPC on GKE and Istio

Samples for running gRPC on GKE and Istio:

gRPC Loadbalancing on GKE with L7 Ingress

client_grpc_app (via gRPC wire protocol) --> ingress --> (grpc Service on GKE)

  • Folder: gke_ingress_lb/

gRPC-web via Ingress

Javascript clients:

client(browser) (via grpc-web protocol) --> Ingress --> (grpc Service on GKE)

gRPC for GKE internal Service->Service

  • Folder gke_svc_lb/

client (pod running in GKE) --> k8s Service --> (gRPC endpoint in same GKE cluster)

gRPC w/ Managed Instance Group with Container Optimized OS

  • Folder gce

client_grpc_app --> L7LB --> ManagedInstanceGroup

Istio gRPC Loadbalancing with GCP Internal LoadBalancer (ILB)

  • folder istio/

client_grpc_app (on GCEVM) --> (GCP ILB) --> Istio --> Service

client_grpc_app (external) --> (GCP ExternalLB) --> Istio --> Service

Also see:


Source and Dockerfile

You can find the source here:

And the various docker images on dockerhub

  • docker.io/salrashid123/grpc_backend

To run the gRPC server locally to see message replay:

  • Server: docker run -p 50051:50051 -t salrashid123/grpc_backend ./grpc_server -grpcport 0.0.0.0:50051

  • Client: docker run --net=host --add-host grpc.domain.com:127.0.0.1 -t salrashid123/grpc_backend /grpc_client --host grpc.domain.com:50051

What client app makes ONE connection out to the Server and then proceeds to send 10 RPC calls over that conn. For each call, the server will echo back the hostname of the server/pod that handled that request. In the example here locally, it will be all from one host.

References

gcegrpc's People

Contributors

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