从架构角度看 Apache/Tomcat 和 IIS7 的异同
IIS7有httpmodules和httphandlers,我猜Apache/Tomcat也有类似的东西。这些是什么 ?一侧或另一侧会缺少哪些事件?
IIS7 has httpmodules and httphandlers, I guess Apache/Tomcat have something similar. What are they ? What events would be missing on one side or another ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这些架构毫无相似之处,据我所知,没有合理的方法可以直接比较它们。
Tomcat 实现了 Java Servlet 和 JSP 标准,而 IIS 不遵循任何标准,而是遵循它自己的标准。
因此,使用 IIS,您最终会编写直接与服务器体系结构(httpmodules 和 httphandlers)交互的代码,而使用 Tomcat,通常不会编写直接与服务器交互的代码。在 Java 中,Web 应用程序被编写为使用标准 api 和生命周期,而 Tomcat 只是该标准的一种实现。
The architectures are nothing alike, and as far as I know there is no reasonable way to compare them directly.
Tomcat implements the Java Servlet and JSP standards, while IIS follows no standard but it's own.
So, with IIS, you wind up writing code that interacts directly with the server architecture (httpmodules and httphandlers), while with Tomcat, one typically does not write code that interacts directly with the server. In Java, web applications are written to work with the standard api and lifecycle, and Tomcat is merely one implementation of that standard.