Re: .NET and multithread networks server application





"Cube" <SiliconJaltz05@xxxxxxxxx> wrote in message news:1166134227.146451.48780@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi,

I have developed large multithreaded network application using Win32
and Winsock in the past connecting to an SQL db.

How fast and robost is .NET 2.0 for creating a similar application?

I need to create an client and server application. The client
application consists of C# Window.form controls which connects to a
database. But I need the client to connect to a server application, and
the server will control access to the database as well as report other
live information.

Is C# and .NET suitable for handling the server application? It needs
to scale to handle many many connections on multiple threads.

Also the Client C# application binds to a database, but now it needs to
connect to a server application and then to the database. Do I need to
create wrapper classes for my data and perform serialization ? or is
there some other approach in .NET?



You want to build a client/server application. Yes C# and .NET are very well suited to that.

This is a very straightforward and common type of application to build in ..NET. Typically you don't code directly against TCP/IP sockets, rather use one of a few frameworks that work at a higher level and handle the plumbing for you.

The best and most robust of these is the new Windows Communication Foundation (WCF) in .NET 3.0.

Windows Communication Foundation
http://msdn2.microsoft.com/en-us/library/ms735119.aspx


Other good options are Web Services
http://msdn.microsoft.com/webservices/default.aspx

and .NET Remoting.
http://msdn.microsoft.com/webservices/remoting/default.aspx

All of these are substantially simpler than coding TCP/IP and provide simple mechanisms to call methods and marshal objects across networks. Of course ..NET also has easy access to TCP/IP sockets so if you really want to write code at that level, you can.

David

.



Relevant Pages

  • Re: Help with first VB application - Data Entry form
    ... I assumed a desktop / winform client application ... time' stamp from the database machine - control machine ... ... problem solved - web server is control system. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Help with first VB application - Data Entry form
    ... I assumed a desktop / winform client application ... time' stamp from the database machine - control machine ... ... problem solved - web server is control system. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Remobjects v KBM
    ... >> client query components) follow from that. ... Then, connections can be created to say SQL Server, Oracle, Interbase and ... can then be created from the abstract dataset definition in 'customers' to ... implicitly - this makes your code not be database connection specific). ...
    (borland.public.delphi.thirdpartytools.general)
  • Re: Help with first VB application - Data Entry form
    ... stamp from the database machine - control machine ... ... unnecessary data to the client ... ... and when building a database independent UI / Client - Server application, ... JavaScript, for example) and thus, will get the time from the web server, ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Opinions needed about the best "Middleware suite" kbmMW vs. RODA
    ... kbmMW supports cross db in such way that all you need to do in your application is to set one property to switch to ... What one have to concentrate about is minimizing the amount of data moved from the app server to the client. ... C/S setup's usually have a quite active chatter going on between the client and the database, ...
    (borland.public.delphi.thirdpartytools.general)