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

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
主站蜘蛛池模板: 会宁县| 孟州市| 招远市| 伊川县| 江西省| 渑池县| 枞阳县| 通州市| 文山县| 鄂尔多斯市| 老河口市| 嘉兴市| 昌宁县| 合山市| 安泽县| 佛山市| 石楼县| 佛冈县| 临夏县| 太原市| 上饶县| 仁布县| 霞浦县| 平舆县| 屯昌县| 宝鸡市| 云林县| 上杭县| 荥经县| 通道| 中卫市| 那坡县| 新安县| 贵溪市| 舒兰市| 罗田县| 耒阳市| 武陟县| 余姚市| 正镶白旗| 崇义县|