通用二进制协议 [英] general-purpose binary protocols

查看:50
本文介绍了通用二进制协议的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在为我的下一个分布式应用程序寻找合适的协议中间件.最近几天我发现了几个规格,想知道我是否错过了一个重要的规格?它应该是一个二进制协议,支持 RPC 并可选择使用不同语言的开源实现.这是我找到的协议列表:

I'm trying to find a suitable protocol middleware for my next distributed application. I've found several specifications in the last few days and was wondering if I missed an important one? It should be a binary protocol, support RPCs and optionally have open-source implementations in different languages. Here's the list of protocols I found:

  • CORBA
  • ICE
  • AMQP
  • 节俭

这是被驳回的协议列表:

And this is the list of dismissed protocols:

  • 基于 XML 的协议,因为它们是基于文本的(XML-RCP、SOAP、hand-rolled 等)
  • 协议缓冲区(闭源)
  • COM(仅限 Windows)

推荐答案

Protocol Buffers 项目绝对不是封闭源代码.

The Protocol Buffers project definitely isn't closed source.

您对哪种语言/平台感兴趣?

Which language/platform are you interested in?

请注意,尽管 Protocol Buffers 中有 stub RPC 支持,但 Google 尚未发布其实际的 RPC 层,因此您必须提供自己的.鉴于基本上你会传递一个请求消息并返回一个响应消息,将它放在现有协议(例如 HTTP POST)之上并不难.

Note that although there's stub RPC support in Protocol Buffers, Google hasn't released its actual RPC layer, so you'd have to provide your own. Given that basically you'd pass a request message and return a response message, it's not that hard to layer it over existing protocols (e.g. HTTP POST).

这篇关于通用二进制协议的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆