- Java EE 8 and Angular
- Prashant Padmanabhan
- 225字
- 2021-07-02 19:22:40
Skinny WAR
The approach of having a single JAR with all its needed dependencies may sound nice to begin with, but this approach may not work for everyone. Fat JARs are easy to deploy and run, but they do bring some complexities along with them:
- Deployment size of the application JAR increases, as you would be bundling some parts of an application server within the deployment file
- Deployment time increases, considering the file size and the need to upload it to different environments
The traditional Skinny WAR, when built against Java EE standards, can be measured in a few kilobytes (KB). Moving this around over the network is much simpler than doing the same with a Fat JAR, which bundles shared libraries along with the application code.
A more familiar style of working with web applications is to create a WAR file. This is your unit of deployment, which gets placed in a Java EE application server such as WildFly, Payara, or any other JEE compliant server. The WAR file contains only the application code, but the runtime environment is provided to it by means of a Java EE server. In a microservice architecture, the server would contain a single microservice, which is deployed in it as a WAR file.
This approach provides for a clean separation of the infrastructure code from the application code.
- 自己動(dòng)手寫(xiě)搜索引擎
- Raspberry Pi for Secret Agents(Third Edition)
- 算法大爆炸:面試通關(guān)步步為營(yíng)
- Mastering matplotlib
- 前端架構(gòu):從入門(mén)到微前端
- 精通Linux(第2版)
- Nginx實(shí)戰(zhàn):基于Lua語(yǔ)言的配置、開(kāi)發(fā)與架構(gòu)詳解
- Domain-Driven Design in PHP
- Learning Splunk Web Framework
- 大數(shù)據(jù)時(shí)代的企業(yè)升級(jí)之道(全3冊(cè))
- Ubuntu Server Cookbook
- 零基礎(chǔ)學(xué)Java(第5版)
- Web程序設(shè)計(jì)與架構(gòu)
- Java EE框架開(kāi)發(fā)技術(shù)與案例教程
- Testing Practitioner Handbook