简体   繁体   English

使用BlazeDS或Web服务作为Flex视图层和Spring业务层之间的远程处理和消息传递技术的优缺点?

[英]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.

相关问题 各种Java Web表示层技术的优缺点 - Pros and Cons of Various Java Web Presentation Layer Technologies 在Web服务和业务层(Spring,tomcat)之间传递身份验证信息 - Pass authentication info between web service and business layer (Spring, tomcat) Flex + Blazeds +远程处理 - Flex + Blazeds + remoting Spring Web Application-如何从页面控制器到业务层 - Spring Web Application - How to get from page controllers to business layer 为什么不调用Spring / Flex / BlazeDS Messaging服务适配器? - Why is the Spring/Flex/BlazeDS Messaging service-adapter not called? BlazeDS-Spring-消息传递-如何将数据从服务推送到Flex客户端? - BlazeDS - Spring - Messaging - How to push data from service to Flex clients? 域对象/服务和业务逻辑层 - Domain objects/services and the Business Logic Layer 在仅Java环境中Web服务和RMI的优缺点是什么? - What are the pros and cons of Web Services and RMI in a Java-only environment? 如何使用Java Spring Boot实现业务逻辑层和存储库层? - How to implement the Business Logic layer and the Repository Layer with Java Spring Boot? Spring Boot集成测试(业务层) - spring boot integration test (business layer)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM