c# - Very fast and light web call, which technology to use: legacy web service or HttpWebRequest -
i need insecure, fast, light , easy implement web method. this:
// client side // parametrize client address dynamic , don't know until run-time myclient.address = "http://example.com/method.aspx/?input=" + value; string result = ""; if (myclient.trycallwebmethod(out result)) // web method succeed. use returned value. else // web method failed. no problem, go plan b. // server side response.write("answer is: " + request.querystring[input]);
i know reconstructing wheel, need simple above code. can implement client httpwebrequest
maybe using legacy web service
better choice.
i have tried wcf
there more choices don't need sessions, security, etc. did localhost benchmarking , wcf
came it's knees @ 200 concurrent requests, need support of more 1000 concurrent calls normal load aspx
page.
this web method gonna consumed asp.net page. never used legacy web service, ok scenario or wcf
has dozen of configurations , certificate installations... ?
after going through operations provided webclient, looks wraps httpwebrequest functionality , provides utility operations. hence suggest go httpwebrequest.
also on server side, try go httphandler instead of aspx page (handlers light weight)
Comments
Post a Comment