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

  • 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.

主站蜘蛛池模板: 讷河市| 尼勒克县| 汝城县| 双柏县| 辽源市| 吉木萨尔县| 富顺县| 监利县| 五台县| 桓台县| 保山市| 房山区| 崇阳县| 通海县| 德令哈市| 永登县| 根河市| 武城县| 大方县| 神池县| 津市市| 达孜县| 六枝特区| 巍山| 垦利县| 北安市| 浮山县| 阿克苏市| 沁水县| 永年县| 合水县| 盈江县| 宜黄县| 邵阳县| 阿尔山市| 曲松县| 秭归县| 额敏县| 祥云县| 泰兴市| 鄂尔多斯市|