Wildfly vs undertow 嵌入式性能
Wildfly vs undertow embedded performances
我对嵌入式 undertow 技术很感兴趣,因为这样我就不必在每次项目更改机器时都重新配置 standalone.xml
。然后我可以 运行 .jar
.
所以我有两个问题:
- 我可以在
war
中保留 wildfly 配置(ssl、安全、端口、数据源、驱动程序和所有烦人的东西)吗?这个想法是能够下载一个新的 wildfly 副本,将 war 放入其中,它只会 运行 (不需要再次弄乱 standalone.xml )。
- 在像 wildfly FULL 这样成熟的 Web 服务器上使用嵌入式服务器是否会影响(或提高)性能? (假设我在 war 中为嵌入式服务器导入所需的 jar)
编辑:来自下面的评论链
I wasn't clear enough. Say I have a web app called webapp.war. Assume
I also move it around between different cloud platform. Each time I
try another cloud platform, I have to redownload wildfly and
reconfigure standalone.xml if I use wildfly server instead of undertow
embedded. If however I use undertow embedded, I can do the
configuration ONCE in the embedded server that is part of the app jar
(that links to webapp.war). I wanna skip this whole configuration each
time I change a cloud platform. So my 2 questions were : Is it
possible to have a scenario under wildfly where the conf is part of my
project and not the server. And the second question was : If I can't
do that with wildfly, then I can do it with undertow embedded API.
However I'm afraid there is a performance cost to that. Is that the
case ?
Undertow 是一个 Servlet 容器。它本身并不知道 WildFly 是什么,也不知道如何根据 standalone.xml
配置任何东西。如果你只是想要一个可执行的 JAR,我建议你看看 WildFly Swarm.
我对嵌入式 undertow 技术很感兴趣,因为这样我就不必在每次项目更改机器时都重新配置 standalone.xml
。然后我可以 运行 .jar
.
所以我有两个问题:
- 我可以在
war
中保留 wildfly 配置(ssl、安全、端口、数据源、驱动程序和所有烦人的东西)吗?这个想法是能够下载一个新的 wildfly 副本,将 war 放入其中,它只会 运行 (不需要再次弄乱 standalone.xml )。 - 在像 wildfly FULL 这样成熟的 Web 服务器上使用嵌入式服务器是否会影响(或提高)性能? (假设我在 war 中为嵌入式服务器导入所需的 jar)
编辑:来自下面的评论链
I wasn't clear enough. Say I have a web app called webapp.war. Assume I also move it around between different cloud platform. Each time I try another cloud platform, I have to redownload wildfly and reconfigure standalone.xml if I use wildfly server instead of undertow embedded. If however I use undertow embedded, I can do the configuration ONCE in the embedded server that is part of the app jar (that links to webapp.war). I wanna skip this whole configuration each time I change a cloud platform. So my 2 questions were : Is it possible to have a scenario under wildfly where the conf is part of my project and not the server. And the second question was : If I can't do that with wildfly, then I can do it with undertow embedded API. However I'm afraid there is a performance cost to that. Is that the case ?
Undertow 是一个 Servlet 容器。它本身并不知道 WildFly 是什么,也不知道如何根据 standalone.xml
配置任何东西。如果你只是想要一个可执行的 JAR,我建议你看看 WildFly Swarm.