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

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
主站蜘蛛池模板: 桐梓县| 东海县| 昌黎县| 东山县| 永春县| 杭锦旗| 高邮市| 泾阳县| 嘉定区| 大名县| 会理县| 三台县| 隆回县| 武穴市| 青岛市| 宿州市| 凤山市| 彰化县| 洪湖市| 苏尼特右旗| 达拉特旗| 砚山县| 昭通市| 宁津县| 闸北区| 井研县| 卢龙县| 南京市| 郓城县| 临夏县| 大石桥市| 雅安市| 曲松县| 玛纳斯县| 扎兰屯市| 澳门| 丰台区| 横峰县| 定南县| 华坪县| 长岛县|