[英]Pros and cons of using BlazeDS or web services as the remoting and messaging technology between Flex view layer and Spring business layer?
In my company, we are going to use Flex3 for the presentation layer of a new financial web application and Spring for the business layer but a debate is still going on regarding the best messaging/remoting technology. 在我的公司,我们将使用Flex3作为新的金融Web应用程序的表示层,使用Spring作为业务层,但关于最佳消息传递/远程处理技术的争论仍在继续。 Can you share your own experiences in terms of pros and cons of using one or the other technology?
您可以在使用一种或另一种技术的利弊方面分享自己的经验吗?
In my experience, use BlazeDS unless you need to use web services which a variety of technologies can access. 根据我的经验,除非您需要使用各种技术可以访问的Web服务,否则请使用BlazeDS。
BlazeDS BlazeDS的
Pros: Less server intensive, less client parsing time, smaller data package (it's binary), meaning it's overall a faster call. 优点:服务器密集程度较低,客户端解析时间较少,数据包较小(二进制),这意味着整体呼叫速度更快。 Can do publish/subscribe as well as method invocation.
可以做发布/订阅以及方法调用。
Cons: Not compatible with non-Flex front ends (although it's open source, so in theory, it could be.) 缺点:与非Flex前端不兼容(虽然它是开源的,所以从理论上讲,它可能是。)
Webservices 网页服务
Pros: Well established, pretty much cross platform. 优点:成熟,非常跨平台。 Easy to read and translate issues.
易于阅读和翻译问题。
Cons: Much more verbose. 缺点:更冗长。 If you use the internal translation of XML to AS Objects, the client has to do some intensive parsing.
如果您使用XML到AS对象的内部转换,客户端必须进行一些密集的解析。 If you use the objects as XML, encapsulation will be weakened (objects outside of the call would have to know detailed information about the XML object, meaning refactoring can be problematic.)
如果将对象用作XML,则封装将被削弱(调用之外的对象必须知道有关XML对象的详细信息,这意味着重构可能会有问题。)
For a good comparison on actual databases with actual numbers, see James Ward's Census application. 有关实际数据库与实际数字的良好比较,请参阅James Ward的人口普查申请。
BlazeDS supports real-time message streaming over AMF and HTTP. BlazeDS支持通过AMF和HTTP进行实时消息流传输。 But the limitations of the number of clients it can handle are lower than the more efficient RTMP of Adobe LiveCycle ES.
但它可以处理的客户端数量的限制低于Adobe LiveCycle ES的更有效的RTMP。 You can always switch to LiveCycle later if you need the performance boost, but there is a price tag involved (don't know how expensive it is).
如果你需要性能提升,你可以随后切换到LiveCycle,但是有一个价格标签(不知道它有多贵)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.