Nil Pun
Nil Pun

Reputation: 17373

Web service performance optimization

Scenario: ASP.NET MVC web application calls Java web service requesting 2 years worth of data. Below is the size of response from web service:

Request Count:   1
Bytes Sent:      937        (headers:396; body:541)
Bytes Received:  689,300        (headers:338; body:688,962)

This takes around almost 2 minute. This causes the ASP.NET to run slow and as a result users frustration. Have spoken with Java guys and they have done their best to optimize the performance.

Could someone please help me with what would be the best way to optimize the web service call to third party? Below is list of things I've done and hasn't help:

  1. Broken down the 2 years data to 1 year each with ASYC call.
  2. Have asked the Java guys to reduce the message size so that payload is small.

Still the performance hasn't increased.

If I create a async VOID method which simply request a 2 years data and populates cache, would this work? Main concern is whether the Login process needs to wait for this VOID method to complete.

Upvotes: 1

Views: 518

Answers (1)

Peter
Peter

Reputation: 27944

This kind of problems aren't easy to debug from remote, however you should first start with measure where you lose most of your time. Is it in the call to the Java service of in your processing. Add performace counter to your code/ or logging to see where can improve most. Next you can exchange parts like the webservice call with a stub and see if your performance is better, now you know where you have to change your performance.

Upvotes: 1

Related Questions