locked
Creating Client Server application in .Net RRS feed

  • Question

  • User-1911739216 posted

    HI ,

    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.

    Problem:

    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.

    Monday, April 29, 2013 9:23 AM

All replies

  • User-1800438376 posted

    can't you make async call to web service to improve performance

    Monday, April 29, 2013 9:32 AM
  • User-1911739216 posted

    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??

    Monday, April 29, 2013 9:37 AM
  • User-1800438376 posted

    which technology you are using at client and how your are accessing web service( by creating proxy at client side)

    Monday, April 29, 2013 9:54 AM
  • User-1911739216 posted

    Hi 

    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.

    Monday, April 29, 2013 9:58 AM
  • User-1800438376 posted

    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?

    Monday, April 29, 2013 10:15 AM
  • User-1911739216 posted

    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.

    Monday, April 29, 2013 10:24 AM