- Hands-On Cloud Development with WildFly
- Tomasz Adamski
- 270字
- 2021-08-27 19:38:43
Java EE microservices
As mentioned in The basic architecture of Java EE applications section, traditionally, in Java EE, you were creating JARs with your applications and deploying them on an application server. With microservices, we will like to transform the same kind of JARs into runnable services:

In a traditional scenario, the application server has to support all the APIs specified in the standard.
In a microservices scenario, we will like to transform each JAR, which is an implementation of a microservice, into a runnable JAR. This can be done by creating a runtime for the given microservice and assembling this runtime and the service's archive into a runnable JAR. Since the assembled runtime will be used by only one service, we don't have to include all the Java EE modules in it. The tool that builds your microservices will have to analyze your service's archive and create a runtime, which contains only those functionalities that are required by it.
We have already sketched how we can use Java EE as a base for microservices architecture, but what are the benefits that you will achieve by doing so? Firstly, you will be able to take advantage of proven technologies and your experience with them immediately. Moreover, there is a portability aspect. As we covered in the preceding section, you are encouraged to start with monolithic applications and refactor it microservices, if necessary. Owing to the common set of technologies used and the standard archive format that is used in both scenarios, you can easily migrate between the two, creating an elastic architecture that can be changed and refactored when necessary.
- 通信網(wǎng)絡(luò)基礎(chǔ)與設(shè)備
- CorelDRAW X6 中文版圖形設(shè)計(jì)實(shí)戰(zhàn)從入門到精通
- Django 2 by Example
- 新一代物聯(lián)網(wǎng)架構(gòu)技術(shù):分層算力網(wǎng)絡(luò)
- 網(wǎng)絡(luò)互聯(lián)技術(shù)(實(shí)踐篇)
- 計(jì)算機(jī)網(wǎng)絡(luò)與通信(第2版)
- CCNP TSHOOT(642-832)認(rèn)證考試指南
- WordPress Web Application Development
- 面向5G-Advanced的關(guān)鍵技術(shù)
- Getting Started with nopCommerce
- 網(wǎng)絡(luò)空間全球治理觀察
- SRv6網(wǎng)絡(luò)部署指南
- 移動(dòng)互聯(lián)網(wǎng)新思維
- 網(wǎng)絡(luò)安全之道
- React Design Patterns and Best Practices(Second Edition)