This is a migrated thread and some comments may be shown as answers.

Discussion about large XML over WCF and performance

13 Answers 147 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Michele
Top achievements
Rank 2
Michele asked on 14 Sep 2009, 10:12 AM
Hello,
please exuse me if I write this post, but I find quite confident with you and I think this post can be usefull to other peoples...
I've got the following problem, I need to send large XML file over the intranet (so speed wouldn't be a big problem) that fills datagrids ...
I've tried in those day to develop a WCF binding channel over http to compress the xml over the internet
(for example I've got a xml that's 9mb, using binaryXML it became 2,1mb but compressing with zip it became 400kb).... the question is that my last test is based on zipping the file, not using a channel...

Anyone of you can give me an example (working on WCF 3.5, SL 3) of a chanenl implementation that works?
 I've found only WCF articles of 2007 where some structure changed and there's no mention to SL... I've also found an implementation of a competitor of yours but found it too expensive for this project that's really small respect to the cost of a license of that kind...

Another question I wish to expose if about caching... anyone of you have implemented an ASP.NET cache policy over WCF/SL?
How should it works a Cachenotifier with data retrieved from a store procedure?

Last question : when the column virtualization will be enabled (even in beta) for Telerik's DataGrid?
Thanks in advance
Paolo

13 Answers, 1 is accepted

Sort by
0
Accepted
Stefan Dobrev
Telerik team
answered on 17 Sep 2009, 06:45 AM
Hello Paolo,

I can suggest you to try out RadCompression for your minimizing the traffic. Check out this blog post for example implementation.

You can enable output caching for WCF RESTful services. See here for more details. Also .NET Framework 4 will came with a new assembly System.Caching (aka project Velocity) that can help here.

We are doing our best to have a preview of GridView's columns virtualization for our beta 2 release, targeted for the middle of October.

All the best,
Stefan Dobrev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Michele
Top achievements
Rank 2
answered on 17 Sep 2009, 08:55 AM
Hello Stefan,
thanks a lot, I've tried the Compression module and it's amazing...
Here're some result

Plain XML : 623Kb
Binary Compression (my actual one, of SL 3) : 362Kb
Telerik Comression : 83Kb
Telerik + Binary : 79Kb (~ 77% compression)

Now I'm looking at caching but I'm a little bit scared about that.... I have to see if there's a way of notify changes as It can be done with SqlDependency

For now thanks a lot!
Bests
Paolo

0
Dave Wolf
Top achievements
Rank 1
Iron
answered on 27 May 2010, 10:24 PM
I'm having a little problem with RadCompression and I'm not sure what I'm doing wrong.  I have a Silverlight 3 application connected to a WCF web service.  I enabled RadCompression on the webservice by modifing the web.config.  I have a function in the webservice that will return XML as a string.  When I run the appliction in Firefox everything seems to work great it takes the 11.3 meg file and compresses it down to about 400 K.  However when I run the same application in Chrome and IE it doesn't compress the XML string at all.  What am I doing wrong?

Thanks,

Dave
0
Rosen
Telerik team
answered on 01 Jun 2010, 10:42 AM
Hi Dave,

I'm afraid that current implementation of RadCompression module does not fully support compressing WCF XML responses under IE browsers. However I'm happy to inform you that our developers managed to address this limitation. Therefore you may check the next internal build of RadControls for ASP.NET AJAX.

All the best,
Rosen
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
hwsoderlund
Top achievements
Rank 1
answered on 01 Jun 2010, 01:27 PM
That is great news! Do you know when the next internal build will be available?
0
Rosen
Telerik team
answered on 01 Jun 2010, 02:32 PM
Hello,

The build containing the modification should be available for download in about a week from now (next Tuesday).

Best wishes,
Rosen
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Dave Wolf
Top achievements
Rank 1
Iron
answered on 09 Jun 2010, 06:04 PM
I just downloaded the new build and everything works great.

Thanks!
0
hwsoderlund
Top achievements
Rank 1
answered on 11 Jun 2010, 10:42 AM
I also just downloaded the new build, but for me things do not work so great. I am developing a Silverlight app, and the compression still does not work in IE. It works in FireFox though. Is there any configuration that needs to be done to make this work in IE ?
0
hwsoderlund
Top achievements
Rank 1
answered on 14 Jun 2010, 09:42 AM
Correction: When I use BasicHttpBinding the compression works, both in IE and FF. But when I switch to binary xml, it does not work in IE. Do you know if compression of binary xml data will be supported in IE?
0
Rosen
Telerik team
answered on 15 Jun 2010, 11:22 AM
Hi,

I'm happy to inform you that we have added support for contentType of application/soap+msbin1 too. Thus you may check the next internal build of RadControls for ASP.NET AJAX.

Regards,
Rosen
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
hwsoderlund
Top achievements
Rank 1
answered on 15 Jun 2010, 02:18 PM
Great! Thanks. /Henrik
0
Tim Kahne
Top achievements
Rank 1
answered on 31 Aug 2010, 03:41 PM
With SL4, this wouldn't work when the app is Out-of-Browser?  If not, do you have suggestions so that we can have one implementation for our WCF calls that work in both cases (browser and out-of-browser)?

- Tim
0
BaiH
Top achievements
Rank 1
answered on 02 Sep 2010, 07:57 AM
I'm not sure, but as RadCompression is module living at the web server, there should be no difference if you are running  your app out-of-browser or not, as long as you are using the same WCF services.

--BH
Tags
General Discussions
Asked by
Michele
Top achievements
Rank 2
Answers by
Stefan Dobrev
Telerik team
Michele
Top achievements
Rank 2
Dave Wolf
Top achievements
Rank 1
Iron
Rosen
Telerik team
hwsoderlund
Top achievements
Rank 1
Tim Kahne
Top achievements
Rank 1
BaiH
Top achievements
Rank 1
Share this question
or