-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
consider Protobuf for Serialization, seriously #30
Comments
ScalaPB seems working smoothly, we just need a binding to find factories at runtime (i.e. adding JSExport to them ), and provide serializers for the built in messages of remote. |
WIP: https://github.com/andreaTP/akka-serialization |
@andreaTP I'm not sure the current state of this issue, but if you are still looking for the solution, try airframe-codec https://wvlet.org/airframe/docs/airframe-codec We've been using it for RPC between Scala JVM and Scala.js. We are also planning to add a Scala.js client code generator from a server-side web interface definition. wvlet/airframe#839 |
Hey, there's still no way to make grpc calls and e.g. pass / return a akka.stream.scaladsl.Source from within a scala.js app right? I've found scalapb/ScalaPB#451 but it's fairly old and closed. I'm interested in calling Lagom endpoints from scala.js. It's already possible to some extent using https://github.com/mliarakos/lagom-js but it seems grpc will be the way to go. |
@xerial thanks for the heads up! I will consider airframe codec for sure whenever I pick up this again! @an-tex yup, I agree that the way to go is most probably GRPC (e.g. an alternative codegen akka-grpc compatible), as you already spotted I did some preliminary work on it, but stopped working on it because of time constraints. Just to make it clear, GRPC does still have limitations used across front and backend (e.g. you would need to use a proxy like envoy in the middle). |
Thanks for the clarification @andreaTP ! I'll let you know if I'll find time to pick it up. |
ScalaPB seems to be available on both platforms, probably we can dig a bit on usign Protobuf for messages exchange.
The text was updated successfully, but these errors were encountered: