developing microservices with wildfly swarm and deploying on openshift
TRANSCRIPT
![Page 1: Developing microservices with wildfly swarm and deploying on openshift](https://reader031.vdocuments.mx/reader031/viewer/2022022414/5876d56c1a28ab1d238b56f5/html5/thumbnails/1.jpg)
October 4, 2016 | Jakarta
![Page 2: Developing microservices with wildfly swarm and deploying on openshift](https://reader031.vdocuments.mx/reader031/viewer/2022022414/5876d56c1a28ab1d238b56f5/html5/thumbnails/2.jpg)
DEVELOPING MICROSERVICES
WITH WILDFLY SWARM AND
DEPLOYING ON OPENSHIFT
Eryan Ariobowo
Solutions Architect
![Page 3: Developing microservices with wildfly swarm and deploying on openshift](https://reader031.vdocuments.mx/reader031/viewer/2022022414/5876d56c1a28ab1d238b56f5/html5/thumbnails/3.jpg)
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](https://reader031.vdocuments.mx/reader031/viewer/2022022414/5876d56c1a28ab1d238b56f5/html5/thumbnails/4.jpg)
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](https://reader031.vdocuments.mx/reader031/viewer/2022022414/5876d56c1a28ab1d238b56f5/html5/thumbnails/5.jpg)
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](https://reader031.vdocuments.mx/reader031/viewer/2022022414/5876d56c1a28ab1d238b56f5/html5/thumbnails/6.jpg)
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](https://reader031.vdocuments.mx/reader031/viewer/2022022414/5876d56c1a28ab1d238b56f5/html5/thumbnails/7.jpg)
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](https://reader031.vdocuments.mx/reader031/viewer/2022022414/5876d56c1a28ab1d238b56f5/html5/thumbnails/8.jpg)
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](https://reader031.vdocuments.mx/reader031/viewer/2022022414/5876d56c1a28ab1d238b56f5/html5/thumbnails/9.jpg)
Partner Technology Update9
MONOLITH VS MICROSERVICES
![Page 10: Developing microservices with wildfly swarm and deploying on openshift](https://reader031.vdocuments.mx/reader031/viewer/2022022414/5876d56c1a28ab1d238b56f5/html5/thumbnails/10.jpg)
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](https://reader031.vdocuments.mx/reader031/viewer/2022022414/5876d56c1a28ab1d238b56f5/html5/thumbnails/11.jpg)
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](https://reader031.vdocuments.mx/reader031/viewer/2022022414/5876d56c1a28ab1d238b56f5/html5/thumbnails/12.jpg)
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](https://reader031.vdocuments.mx/reader031/viewer/2022022414/5876d56c1a28ab1d238b56f5/html5/thumbnails/13.jpg)
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](https://reader031.vdocuments.mx/reader031/viewer/2022022414/5876d56c1a28ab1d238b56f5/html5/thumbnails/14.jpg)
Partner Technology Update14
FRACTIONS
![Page 15: Developing microservices with wildfly swarm and deploying on openshift](https://reader031.vdocuments.mx/reader031/viewer/2022022414/5876d56c1a28ab1d238b56f5/html5/thumbnails/15.jpg)
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](https://reader031.vdocuments.mx/reader031/viewer/2022022414/5876d56c1a28ab1d238b56f5/html5/thumbnails/16.jpg)
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](https://reader031.vdocuments.mx/reader031/viewer/2022022414/5876d56c1a28ab1d238b56f5/html5/thumbnails/17.jpg)
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](https://reader031.vdocuments.mx/reader031/viewer/2022022414/5876d56c1a28ab1d238b56f5/html5/thumbnails/18.jpg)
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](https://reader031.vdocuments.mx/reader031/viewer/2022022414/5876d56c1a28ab1d238b56f5/html5/thumbnails/19.jpg)
Partner Technology Update19
CERTIFIED MICROSERVICES
IaaS
Container Host
Containers & Orchestration
xPaaS
PaaS
Applications
![Page 20: Developing microservices with wildfly swarm and deploying on openshift](https://reader031.vdocuments.mx/reader031/viewer/2022022414/5876d56c1a28ab1d238b56f5/html5/thumbnails/20.jpg)
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](https://reader031.vdocuments.mx/reader031/viewer/2022022414/5876d56c1a28ab1d238b56f5/html5/thumbnails/21.jpg)
plus.google.com/+RedHat
linkedin.com/company/red-hat
youtube.com/user/RedHatVideos
facebook.com/redhatinc
twitter.com/RedHatNews
THANK YOU