- 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.
- Computer Vision for the Web
- 摩登創客:與智能手機和平板電腦共舞
- Learning Network Forensics
- PySide 6/PyQt 6快速開發與實戰
- 從零開始學C語言
- Java 9 Programming By Example
- RESTful Web Clients:基于超媒體的可復用客戶端
- Python人工智能項目實戰
- Visual C++ 開發從入門到精通
- C++標準庫(第2版)
- Web前端開發實戰教程(HTML5+CSS3+JavaScript)(微課版)
- Test-Driven Java Development(Second Edition)
- Python High Performance(Second Edition)
- ROS Robotics Projects
- Unity3D高級編程:主程手記