我可以将 FluorineFX 或 WebORB 改造为我的 C# Web 服务吗?

发布于 2024-07-13 08:52:10 字数 246 浏览 6 评论 0原文

我有一个 C# Web 服务,当前使用 XML 与 Flex 应用程序进行通信。 它不是流数据或任何东西,但我仍然想降低所涉及的开销。 我有两个问题:

1) 使用 FluorineFX 或 WebORB 等技术在减少服务器负载方面是否有任何好处? 我想 Flex 客户不会察觉到太大的差异。

2)将这样的技术改造到现有产品中有多容易? 从头开始是不是更容易?

提前致谢。

I have a C# web service which currently communicates with a Flex app using XML. It's not streaming data or anything, but still I'd like to lower the overhead involved. I have two questions:

1) would I see any benefit from using a technology like FluorineFX or WebORB in terms of reducing load on the server? The Flex clients won't perceive much difference, I imagine.

2) how easy is it to retrofit a technology like this into an existing product? Is it easier when you start from scratch?

Thanks in advance.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

何处潇湘 2024-07-20 08:52:11
  1. 就服务器负载而言,很难说。 我可以肯定地说,客户端的性能差异是显着的。 对于大型数据集,我们发现通过使用 AMF 而不是 XML,客户端性能提高了 10 倍。 Flash Player 反序列化 AMF 的速度比 XML 快得多,这一点很重要,因为您不知道客户端计算机将有多少马力。

  2. 非常简单。 Fluorine 的编程模型不是针对其显式 API 进行编码的模型;而是一种针对其显式 API 进行编码的模型。 您只需配置 Fluorine 来公开某些 .NET 服务。 本质上任何普通的旧类都可以远程公开其方法。 因此,您从 Web 服务迁移到 Fluorine FX 应该很容易。

  1. As far as server load, it's very tough to say. I can say definitely that the performance difference in the client are significant. For large data sets, we've seen a 10x performance increase in the client by using AMF instead of XML. The Flash Player can deserialize the AMF much faster than XML and this is important since you don't know how much horsepower the client machine will have.

  2. Pretty easy. The programming model for Fluorine isn't one where you code against their explicit API; you just configure Fluorine to expose certain .NET services. Essentially any plain old class can have its methods exposed remotely. so your migration from web services to Fluorine FX should be easy.

泪眸﹌ 2024-07-20 08:52:11

使用 WebORB 可以非常轻松地将现有服务公开给 Flex 客户端。 您要做的只是将您的服务放入 WebORB 的 bin 文件夹中,以便可以通过 WebORB 的服务浏览器查看它们。 然后,您可以选择并调用用于测试目的的方法,然后自动生成集成代码以部署到 FlashBuilder 项目中。 这将创建客户端应用程序和服务器端服务之间的集成。

在性能方面,与 Web 服务相比,使用远程处理可以显着提高性能。 我们有一个免费的基准测试工具,可让您在自己的环境中自行测试差异。 对于较大的数据集,性能提升更为明显。 以下是该基准测试工具的链接:

http://www.themidnightcoders.com/products/weborb-for-net/developer-den/technical-articles/amf-vs-webservices.html

It's very easy to expose your existing services to a Flex client using WebORB. What you would do is simply drop your services into WebORB's bin folder making them viewable through WebORB's service browser. You can then select and invoke the methods for testing purposes and then auto generate the integration code for deployment into your FlashBuilder project. This creates the integration between your client application and services on the server-side.

In terms of performance, there is a considerable performance improvement using remoting as opposed to web services. We have a free benchmark tool that lets you test the difference yourself in your own environment. Performance gains are more noticeable for larger data sets. Here is a link to that benchmark tool:

http://www.themidnightcoders.com/products/weborb-for-net/developer-den/technical-articles/amf-vs-webservices.html

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文