Re: .NET and multithread networks server application
- From: "David Browne" <davidbaxterbrowne no potted meat@xxxxxxxxxxx>
- Date: Fri, 15 Dec 2006 10:37:59 -0600
"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
.
- Follow-Ups:
- References:
- Prev by Date: Re: .NET and multithread networks server application
- Next by Date: .NET compact framework floating point support on x86 and ARM?
- Previous by thread: Re: .NET and multithread networks server application
- Next by thread: Re: .NET and multithread networks server application
- Index(es):
Relevant Pages
|