Java和Tomcat的VS ASP.NET和IIS [英] Java and tomcat vs ASP.NET and IIS

查看:275
本文介绍了Java和Tomcat的VS ASP.NET和IIS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

直到最近我已经认为自己是一个pretty良好的网络程序员(即将为10yrs商业经验上的各种电子商务,静态和企业应用程序)。我是自学成才,并一直使用微软产品堆栈(ASP,ASP.NET)...

Until recently I'd considered myself to be a pretty good web programmer (coming up for 10yrs commercial experience on a variety of e-commerce, static and enterprise applications). I'm self taught and have always used the Microsoft product stack (ASP, ASP.NET)...

我的应用始终的功能,相对自由的bug,但从来没有减轻快。由于频繁的网络用户,我总是发现这是常态...如何快速从大高科技球员(易趣,脸谱,微软,IBM,戴尔,Telerik的等等等等)网站 - 实际上没有一个是特别快。我一直将此归因于事物的方式与Web应用程序...

My applications are always functional, relatively bug free, but have never been lightening quick. As a frequent web user I always found this to be the norm... how fast are the websites from the big tech players (eBay, Facebook, Microsoft, IBM, Dell, Telerik etc etc) - in truth none are particularly fast. I always attributed this to "the way things are with web apps"...

...然后我穿过了一款名为凸轮吉拉从atlasian ,这已停止了在我的轨道。 ..

...then I cam across a product called Jira from atlasian and this has stopped me in my tracks...

此应用程序的速度很快,我的意思是令人眼花缭乱的快速..太快时页面之间开关,充分直播内容,大量的图片和数据交叉引用等等等等...的

This application is fast, and I mean blindingly fast.. too fast to time the switches between pages, fully live content, lots of images and data and cross references etc etc...

我在Intranet上运行此,与大型应用程序数据库,这是一个非常正常的服务器上运行(单处理器,SATA硬盘,8GB RAM)。

I run this on an intranet, with a large application DB, and this is running on a very normal server (single processor, SATA HDD, 8GB RAM).

我缺少的东西?是我的编程技巧坏?我想知道如果这个速度增益下降到它被写在Java和Tomcat上运行。

Am I missing something?? Are my programming techniques that bad?? I am wondering if this speed gain is down to it being written in Java and running on Tomcat.

没有人有任何的基准比较的JSP / ASP或Tomcat / IIS ???

谢谢,
马克

请注意:这不是吉拉公然插头。我不为他们工作或有任何隶属关系,他们...但我想能写这样它们的应用程序:)

NOTE: this isn't a blatant plug for Jira. I don't work for them or have any affiliation to them... but I would like to be able to write applications like them :)

推荐答案

因人而异。但最长寿的事情是不是真正的一个不再是Java是慢的说法。除外浮点(其中大多数Java实现是不能随意使用浮点硬件),爪哇一般为快或比编译code更快。一些最优秀的人才花了多年的努力确保这一点,包括诸如动态重新编译/ code的基础上运行时间指标再优化 - 一些静态编译语言,如C语言或汇编不敢说大话

YMMV. But one of the longest-lived Things That Aren't True Anymore is the assertion that "Java Is Slow". Excepting floating-point (where most Java implementations aren't at liberty to use the floating-point hardware), Java is generally as fast or faster than compiled code. Some of the best and brightest have spent years of effort ensuring this, including such things as dynamic recompilation/re-optimization of code based on run-time metrics - something that statically-compiled languages like C or assembler cannot boast.

ASP是有点相反的极端的,因为原来的ASP不得不每它被做一次重新编译每个页面请求。 ASPX允许编译页面code保留解决了这个。这摆脱了大量无用开销的。

ASP is sort of the opposite extreme, since the original ASP had to recompile each page request each and every time it was made. ASPX addressed this by allowing retention of the compiled page code. That got rid of a lot of useless overhead.

一个更令人信服的理由,preFER的Java超过ASPanything / IIS就是自由。一个Java / Tomcat的web应用程序将在几乎所有的操作系​​统上几乎所有的硬件​​上运行。 IIS运行在Windows上。期。并且在大多数情况下,这也意味着英特尔。不Sparc的,不zSeries上。也许你不在乎。不过话说回来,也许下周IBM将提供你的雇主在大型机上一个不容垃圾的交易。

A more compelling reason to prefer Java over ASPanything/IIS is freedom. A Java/Tomcat webapp will run under almost any OS on almost any hardware. IIS runs on Windows. Period. And for the most part, that also means Intel. Not Sparc, Not zSeries. Maybe you don't care. But then again, maybe next week IBM will offer your employer a can't-refuse deal on a mainframe.

我没有基准,并且有很多的事情,可以使一个平台preferable。但我永远放弃了对Java是慢的想法时,我遇到了与酷实时图形用户界面和FreeMind的mindmapper工具海神UML工具。一个小的命中启动的JVM,但在这之后,你永远不知道你下工作的语言。

I don't have benchmarks, and there are a lot of things that can make one platform preferable. But I permanently gave up on the "Java is slow" idea when I encountered the Poseidon UML tool with its cool real-time graphics UI and the FreeMind mindmapper tool. A small hit to startup the JVM, but after that, you'd never know what language you were working under.

这篇关于Java和Tomcat的VS ASP.NET和IIS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆