Best Programming language for Network programming (complex server application)
- From: anup.kalbalia@xxxxxxxxx
- Date: 24 May 2007 09:42:10 -0700
I need to build a real-time network (client-server) application, where
many clients will send data on a continual basis and the server will
process the data, dump into database and send response back to the
client. So the server needs to be a heavily multi-threaded application
with real-time database writes and with a capability of real time
response. I need to know which language and platform are best suited
to write my client and server application? Client will be a GUI
intensive complex application which will receive huge amount of UDP
packets and shall be required to display the same on a real-time
basis.
I m wondering of using java for my client application development as
it shall make my client platform independent as well as provide good
support for GUI development as well as network accessibility. But i m
not too sure abt the performance that java shall be able to provide as
it has to be a real time application.
Now for my server, I am confused between java and C/C++. I have heard
that writing networking applications is easier in Java and even as a
whole, writing and maintaining code in Java is much easier. Also
database interaction is a factor here. But performance-wise i m
extremely worried. Some googling told me that Java is no longer slower
than C++ but i m sceptical. They say that JIT compilation (some
dynamic compilation funda) makes java actually faster than C++. Is it
true or just a theory? I am not a geek and has been using delphi
sockets for so long. But there have been serious issues in delphi
sockets and I want to look for something else. Can anybody please
help. I am willing to go any extra mile to do the coding in C/C++ but
is it worth the effort. Will the performance difference be
significant?
I have tried creating a sample server Java app, which will spawn one
thread for each client socket connection. I tried connecting 5000
client sockets to this blocking server socket and got "Out of Heap
memory" error in Server! This was concerning as my server application
is expected to handle a much higher number of client connections.
Is it a Java's limitation or my ignorance of better java uasabilty? Is
there any other suggestion than sockets?
I know it was a very lengthy posting but any help shall be extremely
helpful as i m badly trying to battle it out in this technological
web. Thanks to anybody who cares to read this post.
.
- Follow-Ups:
- Re: Best Programming language for Network programming (complex server application)
- From: phil-news-nospam
- Re: Best Programming language for Network programming (complex server application)
- From: Henry Townsend
- Re: Best Programming language for Network programming (complex server application)
- From: William Ahern
- Re: Best Programming language for Network programming (complex server application)
- From: B. Augestad
- Re: Best Programming language for Network programming (complex server application)
- Prev by Date: Re: setuid root
- Next by Date: Re: setuid root
- Previous by thread: What are the steps for converting a C executbale into a service
- Next by thread: Re: Best Programming language for Network programming (complex server application)
- Index(es):
Relevant Pages
|