35
Microservices and APIs @christianposta

Microservices and APIs

  • Upload
    ceposta

  • View
    718

  • Download
    2

Embed Size (px)

Citation preview

Microservices and APIs @christianposta

Christian Posta Principal Middleware Specialist/Architect

Twitter: @christianposta

Blog: http://blog.christianposta.com

Email: [email protected]

•  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

Ifchangeishappeningontheoutsidefasterthanontheinsidetheendisinsight.

Jack Welch, former CEO, GE

Cloud Native Architectures

S&P company life expectancy

Wewanttobuildanagilebusiness.

Microservicesisaboutoptimizing…

Microservicesisaboutoptimizing…forspeed.

PeopletrytocopyNet?lix,buttheycanonlycopywhattheysee.Theycopytheresults,nottheprocess.

Adrian Cockcroft, former Chief Cloud Architect, Netflix

Howdoyougofast?

Sheddependencies!

“dependenciesondemand”

Butwestillhavedependencies…

Weneedboundaries

Microservices and APIs

Wehaveourdependenciesinorder.Sohowdowemakechanges??

Servicesmakepromises.

Services make promises

•  Health checking

•  Autoscaling

•  Self healing

•  Circuit breakers

•  Bulkheading

•  Throttling/rate limiting

•  Fallbacks

•  Apologies

Consumercontracts?

Consumercontracts?

Consumercontracts?

{ "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" } } }

Consumerdrivencontracts!

Serviceversioning

APIGatewayPattern?

•  Service versioning

•  Documentation portal

•  Scalability and policies

•  Security and authentication

•  Lifecycle management

•  Monitoring

•  Provisioning & alerting

•  Metering and billing

•  Testing

Scaling realities with APIs…

APIManagement

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

Meet 3scale

3Scale Hybrid-Cloud Model

Bringitalltogether

Twitter: @christianposta

Blog: http://blog.christianposta.com

Email: [email protected]

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