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

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.

主站蜘蛛池模板: 镇巴县| 天等县| 北辰区| 荣成市| 玛曲县| 绥滨县| 长垣县| 达州市| 台湾省| 淮安市| 济源市| 关岭| 麻城市| 宜昌市| 永州市| 宣恩县| 文昌市| 孝义市| 延庆县| 丰台区| 崇信县| 泗水县| 白山市| 巴林左旗| 朝阳县| 射阳县| 定西市| 晋州市| 乐至县| 阿巴嘎旗| 江安县| 威宁| 茌平县| 孝义市| 监利县| 交口县| 望江县| 布尔津县| 天门市| 尖扎县| 铁岭市|