Save 37% off PRO during our Black Friday Sale! »

Smarter Service-to-Service Invocation with Spring Cloud

Smarter Service-to-Service Invocation with Spring Cloud


Josh Long

May 07, 2015


  1. B O O T I F U L M I

    C R O S E RV I C E Josh Long (⻰龙之春) @starbuxman T H E
  2. A B O U T M E . .

  3. Spring Developer Advocate Josh Long (⻰龙之春) @starbuxman |

    Jean Claude van Damme! Java mascot Duke some thing’s I’ve authored... I am.. • open-source contributor 
 (Spring Boot, Spring Integration, 
 Vaadin, Activiti) • JavaOne rockstar • author of 5 books, 
 3 video trainings on Spring
  4. Josh Long - @starbuxman Pivotal is..

  5. T H E S TO RY S O FA R

    . .
  6. Josh Long - @starbuxman it’s not a new story..

  7. Josh Long - @starbuxman ! Twitter moved from a Rails

    monolith to a microservice architecture ! Facebook moved from PHP monolith to a microservice architecture ! Netflix moved from a Java monolith to a microservice architecture ! … the old architecture’s broken..
  8. Josh Long - @starbuxman ! processing can’t scale up •

    concurrent, horizontal architectures are easier to scale • “process”-style concurrency is easy to scale still Moore’s Law is Broken Moore's law is the observation that, over the history of computing hardware, the number of transistors in a dense integrated circuit doubles approximately every two years. The law is named after Gordon E. Moore, co-founder of the Intel Corporation, who described the trend in his 1965 paper.'s_law
  9. Josh Long - @starbuxman Data is overwhelming.. 44000% larger in

    2020 than 2009 data production is expected to be :
  10. mobile More than 
 1.5 MILLION activations daily * @Starbuxman *
  11. Josh Long - @starbuxman a Social World in 60 seconds

    3125 photos uploaded 7630 messages sent 7610 searches 2MM videos viewed 2000 checkins 175k tweets 1090 visitors 700k messages sent * source:
  12. Josh Long - @starbuxman the Internet of Things ! IPv6

    gives us more addresses ! devices are getting smaller, more ubiquitous ! “devices” include homes appliances (refrigerators, washers, coffee machines, dryers), roads, air pollution monitors, (human) body monitors, etc “In five years, by 2018, Earth will be home to 7.6 billion people, says the United Nations. By contrast, some 25 billion devices will be connected by 2015, and 50 billion by 2020, says Cisco.” internet-of-things-2013-3?op=1#ixzz3FxCafwWe
  13. Josh Long - @starbuxman Conway’s Law

  14. T H E C L O U D N AT

    I V E A P P L I C AT I O N
  15. Josh Long - @starbuxman ! all services communicate via APIs

    (not backend databases!) ! APIs should be consistent ! HATEOAS promotes discoverability ! should be easy to stand up ! APIs should provide uniform monitoring and system endpoints for ease of integration into production APIs how do we
  16. Josh Long - @starbuxman ! each service should be deployable

    without blocking other teams ! promotes agility in iteration ! polyglot services ! avoids “DLL hell” by isolating dependencies to the service Independent Deployability
  17. BUILDING ADAPTIVE APPLICATIONS IS HARD built on Cloud Foundry code

    will be open sourced. 
 Demo B U I L D I N G A P I S W I T H S P R I N G B O O T
  18. D I S T R I B U T E

    D S Y S T E M S A R E H A R D
  19. Josh Long - @starbuxman ! Google built a custom stack

    based on C++, Java, Go ! TaoBao built frameworks on Spring (open sourced, too! “Dabbo") ! custom RPC, service registration, coordination ! “Spring at China Scale” ! Baidu have frameworks also built on top of Spring ! Netflix have a large stack based on Spring and Spring Boot ! Twitter built a custom stack based on Scala ! Facebook built a custom stack based on PHP/“Hack” Others have walked this path
  20. Josh Long - @starbuxman title

  21. BUILDING ADAPTIVE APPLICATIONS IS HARD built on Cloud Foundry code

    will be open sourced. 
 Demo B U I L D I N G R E S I L I E N T M I C R O S E RV I C E S W I T H S P R I N G C L O U D
  22. Josh Long - @starbuxman ! Netflix treat AMIs as containers

    ! Many organizations treat Tomcat as their container ! Docker is the container Deploy Containers
  23. Josh Long - @starbuxman ! all services are stateless: if

    one’s struggling, replace it ! failure will happen Treat Servers as Cattle, Not Pets
  24. Josh Long - @starbuxman ! embrace DevOps ! don’t throw

    code over the wall ! map your team to your business vertical ! Netflix have teams and then the platform group who provide infrastructure for teams. Integrated Teams, not Silos
  25. why PaaS? @Starbuxman Imagine if architects had to be

    the janitor for every building they designed. This is how the development team felt prior to moving to Windows Azure. Duncan Mackenzie Nov 07, 2011 “ ”
  26. Josh Long - @starbuxman ! an open-source project administered by

    the Linux Foundation Cloud Foundry is..
  27. BUILDING ADAPTIVE APPLICATIONS IS HARD built on Cloud Foundry code

    will be open sourced. 
 Demo M O V I N G A P P L I C AT I O N S TO T H E C L O U D W I T H C L O U D F O U N D RY
  28. Josh Long - @starbuxman ! Observe-Orient-Decode-Act ! embrace continuous delivery

    (easy if you’re doing everything else in this list!) the OODA Loop
  29. BUILDING ADAPTIVE APPLICATIONS IS HARD built on Cloud Foundry code

    will be open sourced. 
 Demo U N D E R S TA N D I N G Y O U R A P P L I C AT I O N I N P R O D U C T I O N
  30. Josh Long - @starbuxman ! scale is everybody’s problem now,

    not just Netflix/Twitter/Baidu/Alibaba, etc ! “cloud native” is the new norm. It doesn’t have to be hard. ! Spring Boot simplifies application & service development ! Spring Cloud simplifies service interactions ! Cloud Foundry lets you deploy all the things, consistently; removes operational friction ! “smaller is more” Takeaways
  31. Josh Long - @starbuxman ! Former Netflix DevOps Guru Adrian

    Cockroft on DevOps + MS ! Bootiful Applications with Spring Boot ! Chris Richardson’s site and his 
 Decomposing Applications for Scalability talks ! The Netflix Techblog where to go from here..
  32. Josh Long - @starbuxman ! Fred Georges on Programmer Anarchy ! Matt Stine’s CF + Microservices: a Mutualistic Symbiotic Relationship ! Martin Fowler’s article - where to go from here..
  33. Josh Long - @starbuxman Questions? Josh Long (⻰龙之春) @starbuxman A NEW PLATFORM FOR A NEW ERA