In my client application, I am using WCF to get data from the database. When the user makes some changes to some of the data items (like changing a value in a particular dropdown or in a particular textbox), then the WCF service transports the changed data
to a custom library located at server side, which will do some processing on the changed data and then return some values to display at the client side. This custom library is also abstracted out in the WCF facade.
But the problem is that the custom library contains some complex processing, and it is taking too long by the time the user gets to see the values returned by the library. The end users want the responsiveness to be somewhat like what happens in a calculated
cell in an excel sheet, when some input cell values are changed.
How to re-architect my solution to speed up the values returned by the custom library? The library has to be at server side only, because it can be changed dynamically. I am looking at various options, such as ajax. But even using ajax, how do I speed up
the access? Are there any patterns that I can apply to make repsonsiveness faster?
As you mentioned, the performance bottleneck occurs at custom library complex processing. It will be better to resolve the performance issue from the root cause. Also, you can consider WCF tunning or NLB to resolve the issue.
However, if you like, there are excellent WCF performance articals for you reference :
Novice Kid
Member
73 Points
74 Posts
How to speed up access to a library located on server side?
Jan 08, 2013 10:01 AM|LINK
Gurus!
My scenario is like this:
In my client application, I am using WCF to get data from the database. When the user makes some changes to some of the data items (like changing a value in a particular dropdown or in a particular textbox), then the WCF service transports the changed data to a custom library located at server side, which will do some processing on the changed data and then return some values to display at the client side. This custom library is also abstracted out in the WCF facade.
But the problem is that the custom library contains some complex processing, and it is taking too long by the time the user gets to see the values returned by the library. The end users want the responsiveness to be somewhat like what happens in a calculated cell in an excel sheet, when some input cell values are changed.
How to re-architect my solution to speed up the values returned by the custom library? The library has to be at server side only, because it can be changed dynamically. I am looking at various options, such as ajax. But even using ajax, how do I speed up the access? Are there any patterns that I can apply to make repsonsiveness faster?
Looking up to my Gurus for enlightenment!
Novice Kid
gtscdsi
Member
250 Points
50 Posts
Re: How to speed up access to a library located on server side?
Jan 18, 2013 09:32 AM|LINK
Hi,
As you mentioned, the performance bottleneck occurs at custom library complex processing. It will be better to resolve the performance issue from the root cause. Also, you can consider WCF tunning or NLB to resolve the issue.
However, if you like, there are excellent WCF performance articals for you reference :
A Performance Comparison of Windows Communication Foundation (WCF) with Existing Distributed Communication Technologies, http://msdn.microsoft.com/en-us/library/bb310550.aspx
WCF Request Throttling and Server Scalability, http://msdn.microsoft.com/en-us/library/bb310550.aspx
Load Balancing, http://msdn.microsoft.com/en-us/library/ms730128.aspx
Using WCF with NLB, http://kennyw.com/work/indigo/134
http://blogs.msdn.com/b/asiatech/