xuwei-k / grpc-scala-sample Goto Github PK
View Code? Open in Web Editor NEWtranslated from grpc java examples with ScalaPB
License: BSD 3-Clause "New" or "Revised" License
translated from grpc java examples with ScalaPB
License: BSD 3-Clause "New" or "Revised" License
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!
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
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.
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?
@xuwei-k and @tayama0324 can you show us a few hints on where to look for the code for implementing grpc on our project. Thanks a lot for this excellent work.
If I checkout from master and run sbt compile
I get a long list of errors....
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.