Git Product home page Git Product logo

traffic-director-grpc-examples's Introduction

Disclaimer: This is not an officially supported Google product.

gRPC examples: grpc-wallet

This repository contains example services for gRPC.

In this example, users have a wallet for a special currency: gRPC-Coin.

wallet service

This is the user facing service, where users can fetch number of coins in their wallets.

stats service

This services provides price for gRPC-Coin. Users can directly query real time coin price. The wallet service also queries coin price to calculate total balancer in users' accounts.

account service

This is a backend service used by wallet service and stats service, to query user information.

traffic-director-grpc-examples's People

Contributors

dapengzhang0 avatar dfawley avatar donnadionne avatar easwars avatar ericgribkoff avatar garrettgutierrez1 avatar jtattermusch avatar lidizheng avatar menghanl avatar sanjaypujare avatar srini100 avatar temawi avatar yashykt avatar

Stargazers

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

Watchers

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

traffic-director-grpc-examples's Issues

Traffic split doesn't work with "grpcurl"

This problem may only exist in grpc-go.

I tested with grpc-wallet clients in Java, and it works fine. The landing of the first request is random, and the distribution looks good.

Expected Behavior

4:6 RPC distribution between Wallet-v1 and Wallet-v2 with ./grpcurl.

Actual Behavior

100% of RPCs goes to Wallet-v1.

Steps to Reproduce the Problem

  1. Follow https://cloud.google.com/traffic-director/docs/proxyless-configure-advanced-traffic-management to setup cluster;
  2. Follow https://cloud.google.com/traffic-director/docs/observability-proxyless#installing_and_using_grpcdebug to see channel statistics;
  3. Compare the traffic received between Wallet-v1 and Wallet-v2.

Specifications

  • Version: master
  • Platform: N/A

Unable to delete patch branches

At times we have unwanted patch branches after PR merged such as

  • dapengzhang0-patch-1

The author of the PR should be able to delete them. Or even better, force PR to be created in a patch branch in their own fork repo.

Go client context deadline exceeded

Expected Behavior

user@grpc-wallet-client:~/traffic-director-grpc-examples/go/wallet_client$ ./wallet_client price --stats_server="xds:///stats.grpcwallet.io" --watch --user=Bob
2021/08/26 17:57:13 server host: grpcwallet-stats-mig-us-central1-gljr
2021/08/26 17:57:13 grpc-coin price: 9110.
2021/08/26 17:57:14 grpc-coin price: 9018.

Actual Behavior

user@grpc-wallet-client:~/traffic-director-grpc-examples/go/wallet_client$ ./wallet_client price --stats_server="xds:///stats.grpcwallet.io" --watch --user=Bob
021/08/26 17:39:48 xDS credentials in use: false
2021/08/26 17:39:58 Failed to connect to the Wallet server: context deadline exceeded

Steps to Reproduce the Problem

Follow the UG example and run the command.

Specifications

  • Version: master branch (It works if the client repo is checkout to v1.0.x branch)

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.