gRPC in Crystal?

588 views
Skip to first unread message

Roman Andreev

unread,
Feb 6, 2016, 8:08:59 PM2/6/16
to Crystal
Hi Everyone.

I'm want to start using a Crystal.
For now i have ruby services and they communicate via gRPC (protobuf). The Crystal have working implementation of gRPC or support in std lib? And which library implement HTTP/2?

Thanks.

Brian J. Cardiff

unread,
Feb 6, 2016, 8:48:06 PM2/6/16
to crysta...@googlegroups.com
Hi Andreev,

Welcome to crystal :-)

There is no http2 support yet. But as https://github.com/manastech/crystal/pull/2009#issuecomment-171851780 there were some progress towards future support.

There is no protobuf support in the std lib. There is a nice json utils that allows you to declare the expected schema and serialize/deserialize data according to it.

There was a shard with msgpack support in case a binary format is needed.

On a personal taste if a gRPC is to be supported something inspired in ECR/process would allow to generate efficient code during compilation that will generate/parse binary/text messages without parsing the .proto file that defines the schema.

I hope is no discouraging that both answers are "no" in the end. But at the same time, it a space for nice contributions if is the are you are interested in.

Regards & welcome again,

--
You received this message because you are subscribed to the Google Groups "Crystal" group.
To unsubscribe from this group and stop receiving emails from it, send an email to crystal-lang...@googlegroups.com.
To post to this group, send email to crysta...@googlegroups.com.
Visit this group at https://groups.google.com/group/crystal-lang.
To view this discussion on the web visit https://groups.google.com/d/msgid/crystal-lang/73c9b650-343e-4283-9f25-5a1a9d6c5037%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
Brian J. Cardiff

Ary Borenszweig

unread,
Feb 6, 2016, 10:39:44 PM2/6/16
to crysta...@googlegroups.com
Hi,

I just found this:


Is that protobuf? I searched "crystal protocol buffers"

(didn't try that library, though)


For more options, visit https://groups.google.com/d/optout.



--
Ary Borenszweig         Manas Technology Solutions
[ar.phone]                      5258.5240       #ARY(279)
[us.phone]                      312.612.1050    #ARY(279)
[email]                         aboren...@manas.com.ar
[web]                           www.manas.com.ar

Roman Andreev

unread,
Feb 7, 2016, 5:32:47 PM2/7/16
to Crystal
Thanks for information. If so, i think that JSON may not be a bottleneck in my architecture. And i still try to implement it.
Reply all
Reply to author
Forward
0 new messages