What is the difference between Tomcat and Tomcat Native?Tomcat与原生态Tomcat有什么区别吗?
The Tomcat is a well-known Apache licensed web server. There are many stable versions. The one I have been using is Tomcat 8.
Recently, a new native version is released as is quoted from the Apache Foundation official website -- https://tomcat.apache.org/ind...
The Apache Tomcat Project is proud to announce the release of version 1.2.24 of Tomcat Native.
Could someone explain what's the difference between Tomcat Native and Tomcat? Also,when we refer to a software framework as a native framework,for example React Native, what do we expect from the framework? Many Thanks!!
Tomcat是一个大家熟悉的使用Apache许可的网站后端服务器,它有很多稳定版本,其中我最常用的是Tomcat 8.
最近,一个新的原生态版本在Apache基金会官网上发布了,见https://tomcat.apache.org/ind...,宣布了原生态Tomcat发布新版本1.2.24。
可不可以为我解释一下,Tomcat Native和Tomcat的区别?另外,当我们称一个软件框架为Native的时候,比如说有React Native,我们到底在说什么呢,Native意味着什么呢?
先谢谢各位写回答的大佬!!
机翻的吧……
Native
直译就是本地的
、原生的
。你就理解为直接编译成目标平台二进制就行了,与虚拟机(不是 VMWare 那种虚拟机,指的是 LLVM/JVM/CLI 这种虚拟机)相对应。虚拟机好处在于所谓跨平台,
代码编译一次就可以在各个平台上运行了;二进制编译的话你只能在你要运行程序的那台机器上下载源代码、然后再编译,并且 Debian 上编译好的程序拿到 CentOS 上都跑不了,别说拿到 Windows 上了。但虚拟机是有代价的,多了这么一层就会有性能损耗。另外 Tomcat Native 也不是 Tomcat 的一个版本啊,只是一个组件而已,你想在 8 上装就在 8 上装、想在 9 上装就在 9 上装。Tomcat Native 的目的是为了让 Tomcat 支持 APR(Apache Portable Runtime),好针对特定平台的底层做出特定性能优化。
至于 APR 的详细介绍,你百度一下就好了……