Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Would thread model improve performance calls to various asynchronous Web Service calls?

 
partha naveen
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Architects and Designers,

Had a question w.r.t performance engineering. We have a sitiuation where there are external jars into our servers which internally call web services. There has been few performance issues because of these jars, however we cannot modify these jars nor make direct WS calls so was wondering what would be the best way to address this

1. Push these jars to another server so that it does not overload existing servers
2. Use threads to make calls to these jars which would call the WS

Which one of the two is a better approach and are there other options to this?

Thanks and Regards
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What have you measured so far?

CPU time, network load, database load, ... so many things can cause bottlenecks that it is useless to speculate - measure stuff.

Bill
 
partha naveen
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We have done all kinds of profiling. Database is ruled out as no DB calls are being made. All the WS are external to our application and they are being accessed by ajax calls. Its only after all the detailed analysis we are able to identify that these jar files are the ones which are performance heavy.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm still not clear on the architecture here.

When you say "Jars" are you talking about separate programs running on the same CPU as your servers? Is the time spent in making a web service call mostly just waiting for a response?

Does one client call to your service result in a single call to a "jar" running in the same Thread or does your service have to make multiple calls to assemble a response.

The factors which control web service performance are not simple, as I tried to explain in this article.

Bill
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!