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

Building and Deploying Microservices

With an understanding of what makes a microservice, we can now take a deep pe into bundling microservices and deploying them. We will make use of the containerization solutions available and see how they can be used when working with this architectural style.

Java EE has a rich set of APIs for building various types of applications. With decades of experience in distributed applications, Java EE is a promising platform for use with microservices. Enterprise features such as transactions, security, web sockets, persistence, messaging, asynchronous processing, Restful APIs, and an ever-growing set of open source tools and libraries, make it a compelling choice.

Here's what we will cover in this chapter:

  • Fat JAR
  • Skinny WAR
  • Examples using Payara Micro
  • MicroProfile:
    • Java EE already has support
    • WildFly Swarm
    • Spring Cloud
  • Docker containers:
    • Working with distributed teams
    • Building custom images
    • Running multiple containers
    • Fat JAR or Skinny WAR with Docker

When building microservices, we have two packaging choices for deploying our service:

  • Fat JAR: An Uber JAR approach which bundles the server runtime in it
  • Skinny WAR: Traditional slim war which is deployed on a server
主站蜘蛛池模板: 保靖县| 华宁县| 东阿县| 邢台市| 体育| 盐边县| 定日县| 临安市| 军事| 花垣县| 双江| 玉林市| 白山市| 曲水县| 湖口县| 玉树县| 青冈县| 栖霞市| 巴青县| 广河县| 宁津县| 峡江县| 双柏县| 泽州县| 大连市| 海晏县| 四川省| 子洲县| 永昌县| 长葛市| 利川市| 炎陵县| 庆元县| 合作市| 凉山| 佛坪县| 长顺县| 内丘县| 定边县| 宾阳县| 和田县|