官术网_书友最值得收藏!

  • Java EE 8 and Angular
  • Prashant Padmanabhan
  • 234字
  • 2021-07-02 19:22:40

Fat JAR approach

The idea of creating a Fat JAR (all-inclusive JAR), is to allow us to have a single deployable unit that has all the application and runtime code in it. Thus, instead of deploying your application to an application server, you bundle everything needed to run your application into a JAR file, which includes an embedded server. This single artifact can then be promoted through your various environments, such as the test stage, till production.

Here’s the logical view for a Fat JAR based deployment with bundled server runtime/libs:

There already exist new frameworks that make it fairly easy to get started with microservices. We will look at two popular choices, WildFly Swarm and Spring Boot. WildFly Swarm is based on the WildFly application server, while Spring Boot is a popular choice among developers.

Both Spring Boot and WildFly Swarm allow us to build Uber JARs that are self-contained and have a small memory footprint, as they pack only the essentials of what the application needs. Both of these projects provide good support for developing microservices by means of third party library integrations such as Netflix OSS, which is a set of frameworks and libraries for building microservice applications.

Other noteworthy mentions include DropWizard, which also offers a similar approach to building an Uber JAR. We will see examples of WildFly Swarm and Spring Boot in the sections to follow.

主站蜘蛛池模板: 保德县| 彩票| 全州县| 中西区| 凌海市| 嘉荫县| 平谷区| 黑水县| 卢湾区| 宽城| 凯里市| 南昌市| 天祝| 淮阳县| 偏关县| 长汀县| 马龙县| 日土县| 淄博市| 独山县| 饶河县| 康保县| 平潭县| 广德县| 延津县| 南涧| 晋江市| 南昌县| 金山区| 绥棱县| 棋牌| 张北县| 贵港市| 楚雄市| 留坝县| 长寿区| 株洲市| 尤溪县| 东城区| 临沧市| 大埔县|