Skip to content
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

Open
andreaTP opened this issue Jun 27, 2016 · 6 comments
Open

consider Protobuf for Serialization, seriously #30

andreaTP opened this issue Jun 27, 2016 · 6 comments

Comments

@andreaTP
Copy link
Member

ScalaPB seems to be available on both platforms, probably we can dig a bit on usign Protobuf for messages exchange.

@andreaTP
Copy link
Member Author

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.

@andreaTP
Copy link
Member Author

WIP: https://github.com/andreaTP/akka-serialization
the static serializer should work since it is backed by a macro.

@xerial
Copy link

xerial commented Dec 23, 2019

@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

@an-tex
Copy link
Contributor

an-tex commented Jan 21, 2020

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.

@andreaTP
Copy link
Member Author

@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).

@an-tex
Copy link
Contributor

an-tex commented Jan 22, 2020

Thanks for the clarification @andreaTP ! I'll let you know if I'll find time to pick it up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants