Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
© 2015 IBM Corporation
Building out a Microservices
Architecture with WebSphere Liberty
Profile and Netflix Open Source
Da...
david_currie@uk.ibm.com @dcurrie http://uk.linkedin.com/in/davidcurrie/
WebSphere
Liberty Profile
WebSphere
eXtreme
Scale
(WXS)
JAX-RS
ServletFilter
DataService
Facade
ServiceFacade
Data Tier
Ap...
programmableweb.com 2012
4.3 billion API calls/day

Peak Performance
and Scale

Operational
Visibility

DevOps
HA & DR
Elastic scaling
http://techblog.netflix.com
http://netflix.github.io
2012
2013
2014
SPECjEnterprise
Acme Air Cloud/Mobile
Sample/Benchmark born
Sample application
cloud prize work
Acme Air ru...
Monolithic
Application
Monolithic
Application
Modularity
Monolithic
Application
Scaling
Monolithic
Application
Failing

Monolithic
Application
Failing

Monolithic
Application
Failed


Monolithic
Application
Update
Monolithic
Application
Revolution
Monolithic
Application
Develop
Microservices
Application
Microservices
Application
Interactions
Microservices
Application
Scaled
Microservices
Application
Evolution
Service
Discovery
Eureka
Service
Invocation
Ribbon
Hope is not a
design method
“
”Michael Nygard, Release It!
App Container
UserRequest
Dependency A Dependency B Dependency C
Dependency D Dependency F
Dependency G Dependency I
Depen...
UserRequest
Dependency A Dependency B Dependency C
Dependency D Dependency F
Dependency G Dependency I
Dependency J Depend...
UserRequest
Dependency A Dependency B Dependency C
Dependency D Dependency F
Dependency G Dependency I
Dependency J Depend...
UserRequest
Dependency A Dependency B Dependency C
Dependency D Dependency F
Dependency G Dependency I
Dependency E
Depend...
Circuit
Breaker
Hystrix
https://www.flickr.com/photos/leafbug/409950515 CC-BY-ND 2.0
Container
Libraries
App Property File
DB
Runtime
URL
Application
DynamicLongProperty timeToWait =
DynamicPropertyFactory.g...
Small download
Low memory usage
Simple configuration
Fast start up
Easy access
Free tooling
GitHub
Cloud Foundry
NetflixOSS
Zero Turnaround
Jenkins
Opscode
Chef
Apache Maven
IBM UrbanCode Deploy
Gradle
Apache Ant
I...
zosSecurity-1.0 zosTransaction-1.0 zosWlm-1.0
zosConnect-1.0
zosLocalAdapters-1.0
scalingController-1.0
scalingMember-1.0
...
36
dcurrie@shotover /d/libertydemo (master)
$ cat > gradle.properties
wlpDir=d:/libertydemo/wlp
dcurrie@shotover /d/libert...
37
dcurrie@shotover /d/libertydemo/wlp (master)
$ featureManager install netflixoss.wlp_1.0.0.esa
server.xml
<featureManag...
38
DynamicLongProperty timeToWait =
DynamicPropertyFactory.getInstance().
getLongProperty(“mywebapp.lock.waitTime", 1000);...
39
public class MyCommand extends HystrixCommand<String> {
protected String run() { // remote call }
protected String getF...
IBM Bluemix
Builds on a polyglot Platform-as-a-Service
IBM Bluemix
Security
Services
Web and
application
services
Cloud
Integration
Services
Mobile
Services
Database
services
Bi...
IBM Bluemix
Private registry +
Hosted Docker runtime +
Scaling Groups
43
Notices and Disclaimers
Copyright © 2015 by International Business Machines Corporation (IBM). No part of this document ma...
Notices and Disclaimers (con’t)
Information concerning non-IBM products was obtained from the suppliers of those products,...
Thank You
Your Feedback is
Important!
Access the InterConnect 2015
Conference CONNECT Attendee
Portal to complete your ses...
Building out a Microservices Architecture with WebSphere Liberty Profile and Netflix Open Source
Building out a Microservices Architecture with WebSphere Liberty Profile and Netflix Open Source
Building out a Microservices Architecture with WebSphere Liberty Profile and Netflix Open Source
Building out a Microservices Architecture with WebSphere Liberty Profile and Netflix Open Source
Upcoming SlideShare
Loading in …5
×

Building out a Microservices Architecture with WebSphere Liberty Profile and Netflix Open Source

21,344 views

Published on

This session will show how the combination of IBM WebSphere Application Server Liberty profile, IBM's application server for the cloud, and Netflix Open Source Software (OSS), can be used to build applications with high availability, auto-recovery, and continuous delivery at web scale. You will get an overview of the Netflix OSS projects and see how Liberty's extensibility makes it easy to integrate these projects with your application. We will share with you open source that IBM has made available to allow you to leverage the power of these projects within the Liberty programming model. Come see the benefits of a microservices architecture leveraging a combination of Netflix OSS and the WebSphere Liberty profile.

Published in: Software

Building out a Microservices Architecture with WebSphere Liberty Profile and Netflix Open Source

  1. 1. © 2015 IBM Corporation Building out a Microservices Architecture with WebSphere Liberty Profile and Netflix Open Source David Currie, Senior Software Engineer @dcurrie | david_currie@uk.ibm.com
  2. 2. david_currie@uk.ibm.com @dcurrie http://uk.linkedin.com/in/davidcurrie/
  3. 3. WebSphere Liberty Profile WebSphere eXtreme Scale (WXS) JAX-RS ServletFilter DataService Facade ServiceFacade Data Tier App Specific Caching WXS Client nginx Hybrid Worklight App Browser App jQuery/DOJO jQuery/DOJO nginx IBM Worklight http://bit.ly/ acmeairblog
  4. 4. programmableweb.com 2012 4.3 billion API calls/day  Peak Performance and Scale
  5. 5.  Operational Visibility
  6. 6.  DevOps HA & DR Elastic scaling
  7. 7. http://techblog.netflix.com http://netflix.github.io
  8. 8. 2012 2013 2014 SPECjEnterprise Acme Air Cloud/Mobile Sample/Benchmark born Sample application cloud prize work Acme Air run on IBM Cloud at “Web Scale” Portability cloud prize work https://github.com/EmergingTechnologyInstitute
  9. 9. Monolithic Application
  10. 10. Monolithic Application Modularity
  11. 11. Monolithic Application Scaling
  12. 12. Monolithic Application Failing 
  13. 13. Monolithic Application Failing 
  14. 14. Monolithic Application Failed  
  15. 15. Monolithic Application Update
  16. 16. Monolithic Application Revolution
  17. 17. Monolithic Application Develop
  18. 18. Microservices Application
  19. 19. Microservices Application Interactions
  20. 20. Microservices Application Scaled
  21. 21. Microservices Application Evolution
  22. 22. Service Discovery Eureka
  23. 23. Service Invocation Ribbon
  24. 24. Hope is not a design method “ ”Michael Nygard, Release It!
  25. 25. App Container UserRequest Dependency A Dependency B Dependency C Dependency D Dependency F Dependency G Dependency I Dependency J Dependency L Dependency E Dependency H Dependency K Dependency M Dependency N Dependency O
  26. 26. UserRequest Dependency A Dependency B Dependency C Dependency D Dependency F Dependency G Dependency I Dependency J Dependency L Dependency E Dependency H Dependency K Dependency M Dependency N Dependency O App Container FAILURE!
  27. 27. UserRequest Dependency A Dependency B Dependency C Dependency D Dependency F Dependency G Dependency I Dependency J Dependency L Dependency E Dependency H Dependency K Dependency M Dependency N Dependency O UserRequest UserRequest UserRequest UserRequest App Container THREAD STARVATION!
  28. 28. UserRequest Dependency A Dependency B Dependency C Dependency D Dependency F Dependency G Dependency I Dependency E Dependency H Dependency A (5 Threads) Dependency B (5 Threads) Dependency C (10 Threads) Dependency D (5 Threads) Dependency E (10 Threads) Dependency F (5 Threads) Dependency G (10 Threads) Dependency H (5 Threads) App Container FAILFAST
  29. 29. Circuit Breaker Hystrix https://www.flickr.com/photos/leafbug/409950515 CC-BY-ND 2.0
  30. 30. Container Libraries App Property File DB Runtime URL Application DynamicLongProperty timeToWait = DynamicPropertyFactory.getInstance(). getLongProperty(“mywebapp.lock.waitTime", 1000); timeToWait.get(); Dynamic Configuration Archaius
  31. 31. Small download Low memory usage Simple configuration Fast start up Easy access Free tooling
  32. 32. GitHub Cloud Foundry NetflixOSS Zero Turnaround Jenkins Opscode Chef Apache Maven IBM UrbanCode Deploy Gradle Apache Ant IntelliJ IDEA WebSphere Developer Tools Liberty http://wasdev.net http://wasdev.github.io Docker
  33. 33. zosSecurity-1.0 zosTransaction-1.0 zosWlm-1.0 zosConnect-1.0 zosLocalAdapters-1.0 scalingController-1.0 scalingMember-1.0 dynamicRouting-1.0 collectiveController-1.0 clusterMember-1.0 mongodb-2.0wsSecurity-1.1 wmqJmsClient-1.1 wasJmsServer-1.0 jmsMdb-3.1 wasJmsClient-1.1jaxws-2.2 jaxb-2.2 wasJmsSecurity-1.0 jca-1.6couchdb-1.0 jcaInboundSecurity-1.6mdb-3.1 jms-1.1 zOS ND webProfile-6.0wab-1.0 concurrent-1.0 collectiveMember-1.0 restConnector-1.0 sessionDatabase-1.0 ldapRegistry-3.0 webCache-1.0 jaxrs-1.1 distributedMap-1.0 osgiConsole-1.0 json-1.0 timedOperations-1.0monitor-1.0 oauth-2.0 blueprint-1.0 adminCenter-1.0 openid-2.0 openidConnectServer-1.0 openidConnectClient-1.0 serverStatus-1.0 spnego-1.0 osgiAppIntegration-1.0Core servlet-3.0 jsp-2.2 jsf-2.0 ejbLite-3.1 jdbc-4.0 jndi-1.0 appSecurity-2.0 managedBeans-1.0 ssl-1.0 beanValidation-1.0 cdi-1.0 jpa-2.0 jsp-2.3 el-3.0 websocket-1.1 jdbc-4.1 servlet-3.1 websocket-1.0 jsonp-1.0 Base New in 1Q15 New in 4Q14 Web Profile spnego-1.0 osgiAppIntegration-1.0 jsp-2.3 el-3.0 websocket-1.1 jdbc-4.1 zosConnect-1.0 zosLocalAdapters-1.0 scalingController-1.0 scalingMember-1.0 dynamicRouting-1.0 couchdb-1.0 openid-2.0 openidConnectServer-1.0 openidConnectClient-1.0 servlet-3.1 websocket-1.0 jsonp-1.0 Repository onlyInstall and Repository 35 Liberty Features
  34. 34. 36 dcurrie@shotover /d/libertydemo (master) $ cat > gradle.properties wlpDir=d:/libertydemo/wlp dcurrie@shotover /d/libertydemo (master) $ gradlew build BUILD SUCCESSFUL Total time: 1 mins 4.741 secs dcurrie@shotover /d/libertydemo (master) $ ls -s ws-noss/build/libs/ws-netflix-oss_1.0.0.esa 5727 ws-noss/build/libs/ws-netflix-oss_1.0.0.esa https://github.com/WASdev/sample.netflixoss.wlp
  35. 35. 37 dcurrie@shotover /d/libertydemo/wlp (master) $ featureManager install netflixoss.wlp_1.0.0.esa server.xml <featureManager> <feature>jsp-2.2</feature> <feature>usr:netflixoss.wlp</feature> </featureManager>
  36. 36. 38 DynamicLongProperty timeToWait = DynamicPropertyFactory.getInstance(). getLongProperty(“mywebapp.lock.waitTime", 1000); timeToWait.get(); <archaius> <myWebapp><lock><waitTime>500</waitTime></lock></myWebapp> </archaius> server.xml
  37. 37. 39 public class MyCommand extends HystrixCommand<String> { protected String run() { // remote call } protected String getFallback() { // local fallback } } String result = new MyCommand().execute(); <hystrix> <command><MyCommand> <execution><isolation><thread> <timeoutInMilliseconds>10000</timeoutInMilliseconds> </thread></isolation></execution> </MyCommand></command> </hystrix> server.xml
  38. 38. IBM Bluemix Builds on a polyglot Platform-as-a-Service
  39. 39. IBM Bluemix Security Services Web and application services Cloud Integration Services Mobile Services Database services Big Data services Internet of Things Services Watson Services DevOps Services IBM, Third Party and Community Services
  40. 40. IBM Bluemix Private registry + Hosted Docker runtime + Scaling Groups
  41. 41. 43
  42. 42. Notices and Disclaimers Copyright © 2015 by International Business Machines Corporation (IBM). No part of this document may be reproduced or transmitted in any form without written permission from IBM. U.S. Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM. Information in these presentations (including information relating to products that have not yet been announced by IBM) has been reviewed for accuracy as of the date of initial publication and could include unintentional technical or typographical errors. IBM shall have no responsibility to update this information. THIS DOCUMENT IS DISTRIBUTED "AS IS" WITHOUT ANY WARRANTY, EITHER EXPRESS OR IMPLIED. IN NO EVENT SHALL IBM BE LIABLE FOR ANY DAMAGE ARISING FROM THE USE OF THIS INFORMATION, INCLUDING BUT NOT LIMITED TO, LOSS OF DATA, BUSINESS INTERRUPTION, LOSS OF PROFIT OR LOSS OF OPPORTUNITY. IBM products and services are warranted according to the terms and conditions of the agreements under which they are provided. Any statements regarding IBM's future direction, intent or product plans are subject to change or withdrawal without notice. Performance data contained herein was generally obtained in a controlled, isolated environments. Customer examples are presented as illustrations of how those customers have used IBM products and the results they may have achieved. Actual performance, cost, savings or other results in other operating environments may vary. References in this document to IBM products, programs, or services does not imply that IBM intends to make such products, programs or services available in all countries in which IBM operates or does business. Workshops, sessions and associated materials may have been prepared by independent session speakers, and do not necessarily reflect the views of IBM. All materials and discussions are provided for informational purposes only, and are neither intended to, nor shall constitute legal or other guidance or advice to any individual participant or their specific situation. It is the customer’s responsibility to insure its own compliance with legal requirements and to obtain advice of competent legal counsel as to the identification and interpretation of any relevant laws and regulatory requirements that may affect the customer’s business and any actions the customer may need to take to comply with such laws. IBM does not provide legal advice or represent or warrant that its services or products will ensure that the customer is in compliance with any law.
  43. 43. Notices and Disclaimers (con’t) Information concerning non-IBM products was obtained from the suppliers of those products, their published announcements or other publicly available sources. IBM has not tested those products in connection with this publication and cannot confirm the accuracy of performance, compatibility or any other claims related to non-IBM products. Questions on the capabilities of non-IBM products should be addressed to the suppliers of those products. IBM does not warrant the quality of any third-party products, or the ability of any such third-party products to interoperate with IBM’s products. IBM EXPRESSLY DISCLAIMS ALL WARRANTIES, EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. The provision of the information contained herein is not intended to, and does not, grant any right or license under any IBM patents, copyrights, trademarks or other intellectual property right. • IBM, the IBM logo, ibm.com, Bluemix, Blueworks Live, CICS, Clearcase, DOORS®, Enterprise Document Management System™, Global Business Services ®, Global Technology Services ®, Information on Demand, ILOG, Maximo®, MQIntegrator®, MQSeries®, Netcool®, OMEGAMON, OpenPower, PureAnalytics™, PureApplication®, pureCluster™, PureCoverage®, PureData®, PureExperience®, PureFlex®, pureQuery®, pureScale®, PureSystems®, QRadar®, Rational®, Rhapsody®, SoDA, SPSS, StoredIQ, Tivoli®, Trusteer®, urban{code}®, Watson, WebSphere®, Worklight®, X-Force® and System z® Z/OS, are trademarks of International Business Machines Corporation, registered in many jurisdictions worldwide. Other product and service names might be trademarks of IBM or other companies. A current list of IBM trademarks is available on the Web at "Copyright and trademark information" at: www.ibm.com/legal/copytrade.shtml.
  44. 44. Thank You Your Feedback is Important! Access the InterConnect 2015 Conference CONNECT Attendee Portal to complete your session surveys from your smartphone, laptop or conference kiosk.

×