ruby中使用Avro进行微服务互通的例子

Examples of using Avro in ruby for intercommunication for microservices

我正在对内部微服务通信进行一些研究,我偶然发现了 this web-blog 并发现它很有趣。然而,问题是我似乎找不到任何使用 avro 进行通信的示例,所以可以 link 一些关于此的资源,专门针对 ruby?

还是我完全误解了它的用途,认为它不适用于微服务?

我找到了这个博客:

https://www.igvita.com/2010/02/16/data-serialization-rpc-with-avro-ruby/

链接到以下示例:

客户端(发送)

https://github.com/apache/avro/blob/trunk/lang/ruby/test/sample_ipc_client.rb

服务器(接收)

https://github.com/apache/avro/blob/trunk/lang/ruby/test/sample_ipc_server.rb