- 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.
- 微信公眾平臺與小程序開發(fā):從零搭建整套系統(tǒng)
- C#程序設(shè)計實訓指導書
- R語言數(shù)據(jù)可視化實戰(zhàn)
- x86匯編語言:從實模式到保護模式(第2版)
- Learning SQLite for iOS
- 數(shù)據(jù)結(jié)構(gòu)(Python語言描述)(第2版)
- C語言程序設(shè)計
- Mastering C# Concurrency
- MySQL數(shù)據(jù)庫管理與開發(fā)實踐教程 (清華電腦學堂)
- 3D少兒游戲編程(原書第2版)
- SSM輕量級框架應用實戰(zhàn)
- HTML5入門經(jīng)典
- KnockoutJS Starter
- SQL Server從入門到精通(第3版)
- BeagleBone Black Cookbook