Coder Social home page Coder Social logo

xuwei-k / grpc-scala-sample Goto Github PK

View Code? Open in Web Editor NEW
65.0 7.0 25.0 68 KB

translated from grpc java examples with ScalaPB

License: BSD 3-Clause "New" or "Revised" License

Scala 100.00%
grpc java scala scalapb protobuf protocol-buffers grpc-java

grpc-scala-sample's Introduction

gRPC scala sample

grpc-scala-sample's People

Contributors

dependabot[bot] avatar jyane avatar matsu-chara avatar rodrigosetti avatar tayama0324 avatar xuwei-k avatar

Stargazers

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

grpc-scala-sample's Issues

Instructions how to run client and server

First of all, thank you for creating this repo. It has really helped me understand the usage of scala in grpc applications.

Nevertheless I've been struggling to get the HelloWorldServer and the HelloWorldClient to run. Although admittedly I'm a scala newbie, I think this repository would benefit with a description on how to do that, just like it is done in the case of the grpc-java examples: https://github.com/grpc/grpc-java/tree/master/examples#-to-build-the-examples.

I also tried running them in the interceptor branch but couldn't.

I tried running:

  • sbt run
  • sbt run io.grpc.examples.helloworld.HelloWorldServer
  • sbt "run-main io.grpc.examples.helloworld.HelloWorldServer"

Even though show compiledMainClasses finds these: io.grpc.examples.helloworld.HelloWorldServer and io.grpc.examples.helloworld.HelloWorldClient

Could you shed some light? Thanks in advance!

Unable to build channel

I am getting following error

Error:(20, 87) value build is not a member of ?0
        val channel = ManagedChannelBuilder.forAddress(host, port).usePlaintext(true).build

for this line

https://scalapb.github.io/grpc.html has a breaking link

https://scalapb.github.io/grpc.html links to https://github.com/xuwei-k/grpc-scala-sample/tree/master/grpc-scala/src/main/scala/io/grpc/examples/routeguide
but it doesn't exist. I think it is not implemented yet?

So, making an issue to scalapb team or implementing a route guide example is better for scala(pb) beginners.

ExecutionContext for bindService and for ServerBuilder

Hello!
In this line you pass executionContext only to GreeterGrpc.bindService but not to ServerBuilder which is possible by calling .executor(..) on ServerBuilder.forPort(HelloWorldServer.port) (source).

You did that for a reason or it was just for the sake of example? What is the best practise here: these two thread pools rather be the same or separate?

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.