万本电子书0元读

万本电子书0元读

顶部广告

Hands-On Cloud Development with WildFly电子书

售       价:¥

1人正在读 | 0人评论 9.8

作       者:Tomasz Adamski

出  版  社:Packt Publishing

出版时间:2018-03-30

字       数:30.5万

所属分类: 进口书 > 外文原版书 > 电脑/网络

温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印

为你推荐

  • 读书简介
  • 目录
  • 累计评论(0条)
  • 读书简介
  • 目录
  • 累计评论(0条)
Create microservices using Java EE technologies using WildFly Swarm,deploy them in the OpenShift cloud, make them resilient to network failures using Hystrix, configure continuous integration using Jenkins, and security using Keycloak. About This Book ? Create functional microservices with WildFly Swarm ? Use OpenShift to deploy your microservices in the cloud ? Make your application production-ready using Jenkins, Hystrix, and Keycloak Who This Book Is For If you're an experienced developer familiar with Java EE technologies and would like to learn how you can use those technologies in the cloud with WildFly and OpenShift, then this book is for you. What You Will Learn ? Utilize Java EE technology to develop modern cloud-enabled applications ? Easily create microservices with WildFly Swarm using proven Java EE technologies ? See the benefits of OpenShift – easy deployment of your services, out of the box scalability and healing, and integration with Continuous Integration tools ? Integrate the sample application with Jenkins’ Continuous Integration server ? Utilize Netflix OSS to connect your services and provide resilience to your application ? Provide security to your application using Keycloak In Detail 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 a microservice 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 fully functional example application and will have practical knowledge of Java EE cloud development that can be used as a reference in your other projects. Style and approach This example-based tutorial guides you step by step through creating an application based on well-known Java EE technologies (JAX-RS, CDI, JPA, and JSF) and modern architectural patterns.
目录展开

Title Page

Copyright and Credits

Hands-On Cloud Development with WildFly

PacktPub.com

Why subscribe?

PacktPub.com

Contributors

About the author

About the reviewers

Packt is searching for authors like you

Preface

Who this book is for

What this book covers

To get the most out of this book

Download the example code files

Download the color images

Conventions used

Get in touch

Reviews

Java EE and Modern Architectural Methodologies

Java EE

Java Community Process

The basic architecture of Java EE applications

The scope of the Java EE standard

Implementation of Java EE standard

Current development trends

Cloud computing

Microservices

Advantages of implementing microservices

Challenges of implementing microservices

When to adopt the microservice architecture

Microservices and the cloud

Java EE microservices

The goal of the book

The pet store application

The technologies used

Summary

Further reading

Getting Familiar with WildFly Swarm

Introducing WildFly

Performance

Extensible nature

Deployment model

Meet WildFly Swarm

Java EE application

Adapting to WildFly Swarm

Does it really work?

What has just happened here?

Summary

Further reading

Right-Sizing Your Services

Catalog service

Draft version

Fractions

Fraction detection

Fraction detection mode

Thin and hollow JARs

Using hollow JARs

Using thin JARs

Summary

Tuning the Configuration of Your Services

Modifying Swarm configuration

System properties

Implementing your own main class

The Swarm class

Providing the configuration

Using your own main along with properties

Java API

Modifying your archive

The ShrinkWrap API

Obtaining the default archive

Swarm ShrinkWrap extensions

JARArchive

WARArchive

JAXRSArchive

XML configuration

YAML configuration

Project stages

YAML database configuration

Mixing the configurations

Summary

Further reading

Testing Your Services with Arquillian

Introducing Arquillian

Testing Swarm microservices with Arquillian

The default deployment

Swarm configuration

Testing from a standalone client

Summary

Further reading

Deploying Applications on the Cloud with OpenShift

Cloud computing

The cloud infrastructure deployment model

The public cloud

The private cloud

The hybrid cloud

The service model

Infrastructure as a Service

Platform as a Service

Software as a Service

The OpenShift architecture

Containerization

Virtualization

Containers

Kernel isolation tools

Namespaces

cgroups

The Docker implementation of containers

Images and containers

Docker registries

Docker wrap-up

Orchestrating Docker

Kubernetes

Nodes and master services

Volumes

Pods

Deployments

Services

Labels

Benefits

OpenShift

The build infrastructure

Management of projects and users

Minishift

Installation

Starting the cluster

Web console

YAML notation

CLI

Catalog-service on the OpenShift example

Summary

Further reading

Configuring Storage for Your Applications

OpenShift storage concepts

Volumes

Empty directory

Host path

Remote filesystems

PersistentVolume and PersistentVolumeClaims

The catalog-service with database

Configuring PostgreSQL database

Inspecting the volumes

Updating catalog-service

Summary

Scaling and Connecting Your Services

Deployments

Learning the basics of ReplicationController

Load balancing

Service discovery

New services

The pricing service

The customer gateway service

Environment variables

DNS discovery

Summary

Configuring Continuous Integration Using Jenkins

Learning OpenShift builds

Learning about the source-to-image build

Configuring environment variables

The whole source-to-image algorithm

Source-to-image summary

The developer view

Pipeline build

Continuous integration

Continuous deployment

Deployment pipeline

Configuring Continuous Deployment in OpenShift environments

Introducing Jenkins

Our first pipeline

Pipeline syntax language

Core pipeline elements

Standard Maven operation

OpenShift Pipeline Plugin

Summary

Further reading

Providing Security Using Keycloak

Token-based security

Rationale

A basic architecture

OpenID Connect

Authentication code flow

Introducing Keycloak

Cart-service

Installing Keycloak

Creating realm

Create a client

Users and roles

Scopes

Cart service

WildFly Swarm Keycloak adapter

SSL configuration

Secured cloud

Unsecured cloud

Summary

Further reading

Adding Resilience Using Hystrix

Unreliable network

Dependent services

The circuit breaker pattern

The Hystrix circuit breaker

Bulkheading

Fallbacks

The whole algorithm

Using Hystrix

Summary

Further reading

Future Direction

No more standards?

Eclipse MicroProfile

Jakarta EE

Summary

Further reading

Other Books You May Enjoy

Leave a review - let other readers know what you think

累计评论(0条) 0个书友正在讨论这本书 发表评论

发表评论

发表评论,分享你的想法吧!

买过这本书的人还买过

读了这本书的人还在读

回顶部