Last post Apr 29, 2013 10:24 AM by vaibhavacumen
Apr 29, 2013 09:23 AM|vaibhavacumen|LINK
I have to create a client server application my requirement is as follows:
1.Application should work over internet.
2.Client can send any request at any time and response can come at any time its not fixed that response will come only client request.
3.My server is in linux(without internet).
4.What can be the communication medium between My linux server and client application.
5.I have implemented web services with following step:
a) I have created a web service implemented on windows server which make socket connection with linux server.
b) I have created a thread in client application which calls a service function which receives response from server.
c) I have written normal socket send receive in web service.
d) Main thread can send any data at any time.
Due to multiple thread access my web service got slow.I am continuously accessing a function of web service by a background thread which blocks my send.
I want to confirm where i m wrong in my architecture and if my approach is wrong please suggest me the right one.
Apr 29, 2013 09:32 AM|luckyforu2006|LINK
can't you make async call to web service to improve performance
Apr 29, 2013 09:37 AM|vaibhavacumen|LINK
I can make it asynchronous but my socket need to be blocking on service in receive.
At that time i m not able to send any data because my thread is alredy accessing the receive for services.
can u suggest me if my application should have two threads or not??
Apr 29, 2013 09:54 AM|luckyforu2006|LINK
which technology you are using at client and how your are accessing web service( by creating proxy at client side)
Apr 29, 2013 09:58 AM|vaibhavacumen|LINK
I m using C#.Net at client side and accessing by creating proxy only.
Can u tell me where i have to put call back at service level or at socket level.
Apr 29, 2013 10:15 AM|luckyforu2006|LINK
if you are access server via proxy then create object of proxy and call the global method its done.
where you are writing socket code?
Apr 29, 2013 10:24 AM|vaibhavacumen|LINK
That i have alredy done but due to it my application slow down.because when i m sending i m not able to receive.
I have written socket code at service becuase my service can only access server.