从架构角度看 Apache/Tomcat 和 IIS7 的异同

发布于 2024-12-20 16:42:50 字数 81 浏览 3 评论 0原文

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

始终不够爱げ你 2024-12-27 16:42:50

这些架构毫无相似之处,据我所知,没有合理的方法可以直接比较它们。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文