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.

Microservices and APIs

1,453 views

Published on

My talk from microservicesjourney.com events in Atlanta and Minneapolis

Published in: Software
  • Be the first to comment

Microservices and APIs

  1. 1. Microservices and APIs @christianposta
  2. 2. Christian Posta Principal Middleware Specialist/Architect Twitter: @christianposta Blog: http://blog.christianposta.com Email: christian@redhat.com •  Author “Microservices for Java developers” •  Committer on Apache Camel, Apache ActiveMQ, Fabric8, others •  Worked with large Microservices, web-scale, unicorn company •  Blogger, speaker about DevOps, integration, and microservices
  3. 3. If change is happening on the outside faster than on the inside the end is in sight. Jack Welch, former CEO, GE Cloud Native Architectures S&P company life expectancy
  4. 4. We want to build an agile business.
  5. 5. Microservices is about optimizing…
  6. 6. Microservices is about optimizing … for speed.
  7. 7. People try to copy Net?lix, but they can only copy what they see. They copy the results, not the process. Adrian Cockcroft, former Chief Cloud Architect, Netflix
  8. 8. How do you go fast?
  9. 9. Shed dependencies!
  10. 10. “dependencies on demand”
  11. 11. But we still have dependencies…
  12. 12. We need boundaries
  13. 13. Microservices and APIs
  14. 14. We have our dependencies in order. So how do we make changes??
  15. 15. Services make promises.
  16. 16. Services make promises •  Health checking •  Autoscaling •  Self healing •  Circuit breakers •  Bulkheading •  Throttling/rate limiting •  Fallbacks •  Apologies
  17. 17. Consumer contracts?
  18. 18. Consumer contracts?
  19. 19. Consumer contracts? { "request" : { "url" : "/user/ceposta", "method" : ”GET” }, "response" : { "status" : 200, "body" : ([ first: 'christian' last: 'posta' twitter: '@christianposta' ]), "headers" : { "X-Application-Context" : "application:-1", "Content-Type" : "text/plain" } } }
  20. 20. Consumer driven contracts!
  21. 21. Service versioning
  22. 22. API Gateway Pattern?
  23. 23. •  Service versioning •  Documentation portal •  Scalability and policies •  Security and authentication •  Lifecycle management •  Monitoring •  Provisioning & alerting •  Metering and billing •  Testing Scaling realities with APIs…
  24. 24. API Management
  25. 25. Key benefits for MSA •  Fine-grained and flexible access control for microservices •  Usage patterns and analytics •  Configuration of usage contracts, rate limiting •  Automatic and interactive interface documentation •  Monetization of microservices
  26. 26. Meet 3scale
  27. 27. 3Scale Hybrid-Cloud Model
  28. 28. Bring it all together
  29. 29. Twitter: @christianposta Blog: http://blog.christianposta.com Email: christian@redhat.com Thanks! BTW: Hand drawn diagrams made with Paper by FiftyThree.com J http://fabric8.io http://kubernetes.io http://openshift.com http://events.linuxfoundation.org/events/kubecon

×