elixir-grpc / grpc

An Elixir implementation of gRPC
https://hex.pm/packages/grpc
Apache License 2.0
1.4k stars 214 forks source link

Support Grpc and flatbuffers #37

Closed fire closed 5 years ago

fire commented 7 years ago

https://grpc.io/blog/flatbuffers

https://github.com/wooga/eflatbuffers exists

There needs to be some integration with grpc-elixir.

fire commented 6 years ago

What are appropriate places to hook into the eflatbuffers library? I don't understand the design of grpc-elixir.

tony612 commented 6 years ago

Most of the implementation of grpc-elixir may be related with protobuf and there may lots of code to be changed. So you have to understand how grpc-elixir works if you want to add the flatbuffers support. But it's hard to explain the design in some few words, the code is the best way :). And you can refer the this doc https://grpc.io/docs/guides/wire.html. gRPC is just an HTTP/2 framework, you can use Protobuf or flatbuffers to marshal/unmarshal the data.

odo commented 6 years ago

Hi, main author of eflatbuffers here. If can can help with this, I would be happy to do so!

tony612 commented 5 years ago

I think this can be implemented by using codec https://github.com/elixir-grpc/grpc/pull/99