21 points · by leksak · 9y ago · 11 comments
I believe that using Kotlin for our data classes might very well mitigate a few issues (reducing boilerplate => happiness) but obviously, it won't be an end-all-be-all.
Protobuf+gRPC seems great when you have a project where there may be dozens of languages in use but that is simply not the case here.
What are you using? What's your pain level? Is Finagle nice to use outside of Scala?
I vastly prefer gRPC (Cap'n'Proto's documentation leaves a lot to be desired so it's difficult to use, gRPC comes with threading built in, Capnp does not) and aside from some performance issues, have had zero problems with it.
What kinds of objects are you having issues with? I suspect the problem isn't gRPC/protobuf so much as the code you're using to interact with it. How exactly are you using it?
There was a blog post around 3 months ago which went in this direction: use it to abstract transport/serialization, but don't try to force your whole business domain into this
If you’re thinking about switching to Scala, the gRPC support in the scalapb library is mature and easy to use.
You can check out the slides from my gRPC+Scala talk here: https://github.com/zackangelo/grpc-intro-scala
> failing to set attributes as protocols have evolved over time has been a genuine problem.
Can you explain what you mean? The evolution of datagrams seems like it's one of grpc's core strengths.
Also a really great tool is https://github.com/moul/protoc-gen-gotemplate We use this right now to generate an Elm JSON client for grpcgateway (without Swagger)
We use it in python, c++, and Matlab. We can easily separate processes across multiple computers with little effort.
If you can figure out exactly which part your complaining about you should be able to automate it (eg. generating the boilerplate using reflection in java)