Saturday, May 22, 2010

C++ or Java or ASP.NET?

If i were to write a web application that will perform search function on millions of records, much like Yahoo and Google do (not doing another search engine..), if i use the same db, using the same query, and have the same server, which will give me a faster returned results? Java or C++ or any other language? Will it be slower if i use C++ in ASP.NET platform, instead of CGI? Thanx.

C++ or Java or ASP.NET?
If business logic is relatively simple and you don't need parallel processing you can opt to any language depending on the development cost. The price that charged by software developers is about to be the same so does not matter what you choose. Another question is DB optimization. Most perfomance problem in such type of application is database related. You better focus on optimizing database quiry then on selecting server programming language. If you need multithreading, some infastuctural support as connecting to mainframe or creating complecated reports then take Java. The good point of uisng Java that you can start working with absolutly free and vendor independen software. Once you product becomes mature you can opt to using some professional level application server that will allow you to parallel your processing and perform more request at the same time. You can encrease computing power according your needs. Again Java is portable so you select ideal hosting depending on your financial means. You can start from hosting your application on the regular PC and then choose an professional server that is working on UNIX. So Java bassically gives you more options. .NET is also good. As people say it has a support but Microsoft is Microsoft. Today they sale .NET tomorrow they don't. Some time ago they stopped supporting J++ because of the commercial dispute with Sun. May be tomorrow it will some issue with .NET. Are you going to take the hit. My advice - stick with openwire and buy commercaial soft only when you ready.
Reply:for web-based it will be ASP.net or PHP


there are cons and prons for both languages...ASP.net is NOT free, it is expensive, it is a product of Microsoft..but it is quite good..if u purchase it they will provide technical support and assist u with using it...on the other hand PHP is is an open source project..it is widely used by many of the major companies..PHP supports multi platforms including windows and linux...there are a lot of help forums for php..it is free of charge and can be downloaded freely form their website..PHP also supports a lot of webservers including IIS, zend, etc.. and suports many data bases
Reply:My recommendation would be ASP.NET or Java, as with C++ you will have to handle your own memory management. I'm all for C++, but most of the work will be done in the DB, so I would go for the ease of a managed code environment. You might even want to look at Python.
Reply:for web i think java, (iam doubt abt the same code, because its not practical)
Reply:Use ASP.NET. Using C#, VB.Net, or Managed C++ will surpass the performance of Java, especially if the app is running on an Intel-based processor. Don't forget that Javacode is interpreted and .NET code runs native after the initial run.


No comments:

Post a Comment