对于跨语言程序通信,还有比 CORBA 更好的吗?
我正在进行一个使用 CORBA 读取对象数据的项目,这些对象可以用 C++ 或 Java 实现,但符合相同的 IDL。优点是 idlj 编译器,所有必要的代码都随 Java 一起免费提供。缺点似乎是我经常听说 CORBA 很旧,而且不是最新、最好的。但我还没有听说过更好的名字。有没有?
I'm on a project using CORBA to read the data of objects that could be implemented in C++ or Java but conform to the same IDL. The pros are the idlj compiler and all the necessary code came free with Java. The con seems to be that I hear quite a bit that CORBA is old and not the latest and greatest. But I haven't heard names for anything that is better. Is there?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
有很多方法可以进行进程间通信。我的脑海中浮现出一些。
但是,之前当您进行切换时,您需要问自己
因为听说有更好、更闪亮、更酷的东西而删除 CORBA(或任何协议/堆栈/库)并不是一个好主意。
删除它们是因为它们给你带来了特定的问题,或者因为新事物允许你做一些现有技术无法完成的特定事情,这是转换的一个很好的理由。
There's loads of ways to do inter-process communication. Off the top of my head here's a few.
However, before you switch you need to ask yourself
Removing CORBA (or any protocol/stack/library) because you heard that there was something better, shinier, cooler out there isn't a good idea.
Removing them because they're causing you specific problems, or because the new thing allows you to do something specific that can't be done with the existing tech is a good reason to switch.
好吧,总有 SOAP,它是当今这组事物中更常见的技术。它虽然没有那么紧,但很有效。
Well, there's always SOAP, which is the more common technology for this set of things these days. It's not as tight a binding but it works.
我真的无法想象如果我开始一个新项目会选择 CORBA,而且我过去已经经常使用它。编程确实很可怕。有很多更好的选择,尽管其中许多是专有的(当然,大多数 CORBA ORB 也是如此),例如 TIBCO。无论如何,您都不应该仅仅因为某项技术恰好安装在您的 PC 上而选择它。
I really can't imagine choosing CORBA if I were starting a new project, and I've used it quite a bit in the past. It is truly horrible to program for. There are a lot better alternatives out there, thogh many of them are proprietory (as are most CORBA ORBs, of course), such as TIBCO. In any event, you should never choose a technology simply because it happens to be installed on your PC.
查看 Google 协议缓冲区。
摘自常见问题解答:
Take a look at Googles Protocol Buffers.
Taken from the FAQ:
查看互联网通信引擎 (ICE)。
阅读CORBA 和 ICE 之间的比较。
ICE 更干净、更强大,而且学习曲线更短。文档广泛而全面(我见过的最好的),并且有大约 50 个所有受支持语言的示例程序。恕我直言,确实没有可比性。
Check out the Internet Communication Engine (ICE).
Read the comparison between CORBA and ICE.
ICE is much, much cleaner, and more powerful, with a shorter learning curve. Documentation extensive and comprehensive (the best I've seen), and there is about 50 example programs in all of the supported languages. IMHO, there's really no comparison.