Book Image

Hands-On Cloud Development with WildFly

By : Tomasz Adamski
Book Image

Hands-On Cloud Development with WildFly

By: Tomasz Adamski

Overview of this book

The book starts by introducing you to WildFly Swarm—a tool that allows you to create runnable microservices from Java EE components. You’ll learn the basics of Swarm operation—creating microservices containing only the parts of enterprise runtime needed in a specific case. Later, you’ll learn how to configure and test those services. In order to deploy our services in the cloud, we’ll use OpenShift. You’ll get to know basic information on its architecture, features, and relationship to Docker and Kubernetes. Later, you’ll learn how to deploy and configure your services to run in the OpenShift cloud. In the last part of the book, you’ll see how to make your application production-ready. You’ll find out how to configure continuous integration for your services using Jenkins, make your application resistant to network failures using Hystrix, and how to secure them using Keycloak. By the end of the book, you’ll have a functional example application and will have practical knowledge of Java EE cloud development that can be used as a reference in your other projects.
Table of Contents (14 chapters)

Deployments

Let's examine what happens under the hood during deployment of our services. We are going to continue work on an example from the previous chapter.

Examples reference: chapter8/catalog-service-openshift-load-balancing.

You have to open the web console, and navigate to Applications| Deployments | catalog-service:

Now we will be able to see the deployment configuration. This is the graphical representation of OpenShift's DeploymentConfiguration object.

As you learned in Chapter 6, Deploying Applications on the Cloud with OpenShift, OpenShift adds another layer on top of Kubernetes to provide a more convenient and productive programmer experience. It does that, among other things, by extending the object model of Kubernetes. DeploymentConfiguration and Deployments are OpenShift objects that extend the Kubernetes object model.

The DeploymentConfiguration object...