developing microservices with wildfly swarm and deploying on openshift

21
October 4, 2016 | Jakarta

Upload: andreas-kuncoro

Post on 15-Apr-2017

128 views

Category:

Technology


0 download

TRANSCRIPT

Page 1: Developing microservices with wildfly swarm and deploying on openshift

October 4, 2016 | Jakarta

Page 2: Developing microservices with wildfly swarm and deploying on openshift

DEVELOPING MICROSERVICES

WITH WILDFLY SWARM AND

DEPLOYING ON OPENSHIFT

Eryan Ariobowo

Solutions Architect

Page 3: Developing microservices with wildfly swarm and deploying on openshift

Partner Technology Update3

AGENDA

• The Context: Microservices and Java EE

• WildFly Swarm: Concepts, Ideas & Mechanics

• Microservices on OpenShift

Page 4: Developing microservices with wildfly swarm and deploying on openshift

Partner Technology Update4

MONOLITH

Business Logic

CDI REST TX

Database

JPA

UI

HTMLDBLoad

Balancer

Page 5: Developing microservices with wildfly swarm and deploying on openshift

Partner Technology Update5

MONOLITH DISADVANTAGES

• Large and complex

• Difficult to maintain

• Obstacles to frequent deployments

• Makes adoption of new technologies difficult

Page 6: Developing microservices with wildfly swarm and deploying on openshift

Partner Technology Update6

MICROSERVICES

Service

DB

LoadBalancer

JAR

DB

DB

Service

JAR

Service

JAR

Service

JAR

Page 7: Developing microservices with wildfly swarm and deploying on openshift

Partner Technology Update7

MICROSERVICES ADVANTAGES

• Better alignment with organisation

• Starts faster, speeds up deployments

• Fault isolation

• Services can be scaled independently

• Local changes can be deployed easily

• Flexible choice of technology

Page 8: Developing microservices with wildfly swarm and deploying on openshift

Partner Technology Update8

WHAT ARE MICROSERVICES?

“…an approach to developing a single application as a suite of small services, each running in its own process and communicating with lightweight mechanisms, often an HTTP resource API.”

Martin Fowler

Page 9: Developing microservices with wildfly swarm and deploying on openshift

Partner Technology Update9

MONOLITH VS MICROSERVICES

Page 10: Developing microservices with wildfly swarm and deploying on openshift

Partner Technology Update10

PERCEPTIONS ON JAVA EE

Likes

• Robust and mature components

• Scalable, standards compliant, integrates well

Dislikes

• Monolith and heavyweight

Page 11: Developing microservices with wildfly swarm and deploying on openshift

Partner Technology Update11

MICROSERVICE REQUIREMENTS

• Transaction

• REST stack

• Persistence and connection pooling

• Async messaging

• Caching

• Authentication & authorisation

Typically providedby App Containers

Page 12: Developing microservices with wildfly swarm and deploying on openshift

Partner Technology Update12

WILDFLY SWARM

• OSS Project sponsored by Red Hat

• Sidekick of Wildfly Application Server

• Allows Java EE components to become independently deployable

services

• Build applications as fat jars

Page 13: Developing microservices with wildfly swarm and deploying on openshift

Partner Technology Update13

JUST ENOUGH APP SERVER

• Use the API’s you want

• Include the capabilities you

need

• Wrap it up for deployment

Page 14: Developing microservices with wildfly swarm and deploying on openshift

Partner Technology Update14

FRACTIONS

Page 15: Developing microservices with wildfly swarm and deploying on openshift

Partner Technology Update15

UBERJAR

• A single .jar file containing your application,

• the portions of WildFly required to support it,

• an internal Maven repository of dependencies,

• plus a shim to bootstrap it all

Page 16: Developing microservices with wildfly swarm and deploying on openshift

Partner Technology Update16

MICROSERVICE PREREQUISITES

• Automated deployment and testing

• Rapid provisioning

• Service discovery

• Monitoring

• Containers

• Load balancing

• Throttling

• Circuit breaker

PaaS

Page 17: Developing microservices with wildfly swarm and deploying on openshift

Partner Technology Update17

OPENSHIFT TO MANAGE MICROSERVICES

OPENSHIFT ENTERPRISE

RHEL ATOMIC HOST RHEL ATOMIC HOST RHEL ATOMIC HOST

MicroService

MicroService

MicroService

MicroService

MicroService

MicroService

MicroService

MicroService

MicroService

Page 18: Developing microservices with wildfly swarm and deploying on openshift

Partner Technology Update18

JBOSS MIDDLEWARE ON OPENSHIFT

OPENSHIFT ENTERPRISE

RHEL ATOMIC HOST RHEL ATOMIC HOST RHEL ATOMIC HOST

MicroService

MicroService

MicroService

MicroService

MicroService

MicroService

MicroService

MicroService

MicroService

KUBERNETES

Page 19: Developing microservices with wildfly swarm and deploying on openshift

Partner Technology Update19

CERTIFIED MICROSERVICES

IaaS

Container Host

Containers & Orchestration

xPaaS

PaaS

Applications

Page 20: Developing microservices with wildfly swarm and deploying on openshift

Partner Technology Update20

KEY TAKEAWAYS

• Java EE is not dead

• Wildfly Swarm creates Microservices applications with just the Java EE

components you need

• OpenShift PaaS complements a Microservices architecture

Page 21: Developing microservices with wildfly swarm and deploying on openshift

plus.google.com/+RedHat

linkedin.com/company/red-hat

youtube.com/user/RedHatVideos

facebook.com/redhatinc

twitter.com/RedHatNews

THANK YOU