microservices state of the union
play

Microservices: State of the Union Adrian Cockcroft @adrianco - PowerPoint PPT Presentation

Microservices: State of the Union Adrian Cockcroft @adrianco Technology Fellow - Battery Ventures June 2016 What does @adrianco do? Maintain Relationship with Presentations at Technology Due Cloud Vendors Conferences Diligence on Deals


  1. Microservices: State of the Union Adrian Cockcroft @adrianco Technology Fellow - Battery Ventures June 2016

  2. What does @adrianco do? Maintain Relationship with Presentations at Technology Due Cloud Vendors Conferences Diligence on Deals Technical Presentations at @adrianco Advice for Portfolio Companies Companies Program Networking with Committee for Interesting People Tinkering with Conferences Technologies Previously: Netflix, eBay, Sun Microsystems, CCL, TCU London BSc Applied Physics

  3. Developer responsibilities: Faster, cheaper, safer

  4. What Happened? Rate of change increased Cost and size and risk of change reduced

  5. Disruptor: Continuous Delivery with Containerized Microservices

  6. Microservices

  7. A Microservice Definition Loosely coupled service oriented architecture with bounded contexts

  8. If every service has to be updated at the same time it’s not loosely coupled A Microservice Definition Loosely coupled service oriented architecture with bounded contexts

  9. If every service has to be updated at the same time it’s not loosely coupled A Microservice Definition Loosely coupled service oriented architecture with bounded contexts If you have to know too much about surrounding services you don’t have a bounded context. See the Domain Driven Design book by Eric Evans.

  10. Speeding Up The Platform Datacenter Snowflakes • Deploy in months • Live for years

  11. Speeding Up The Platform Datacenter Snowflakes Virtualized and Cloud • Deploy in months • Deploy in minutes • Live for years • Live for weeks

  12. Speeding Up The Platform Datacenter Snowflakes Virtualized and Cloud Container Deployments • Deploy in months • Deploy in minutes • Deploy in seconds • Live for years • Live for weeks • Live for minutes/hours

  13. Speeding Up The Platform Datacenter Snowflakes Virtualized and Cloud Container Deployments Lambda Deployments • Deploy in months • Deploy in minutes • Deploy in seconds • Deploy in milliseconds • Live for years • Live for weeks • Live for minutes/hours • Live for seconds

  14. Speeding Up The Platform Datacenter Snowflakes Virtualized and Cloud Container Deployments Lambda Deployments • Deploy in months • Deploy in minutes • Deploy in seconds • Deploy in milliseconds • Live for years • Live for weeks • Live for minutes/hours • Live for seconds AWS Lambda is leading exploration of serverless architectures in 2016

  15. State of the Art in Web Scale Microservice Architectures AWS Re:Invent : Asgard to Zuul https://www.youtube.com/watch?v=p7ysHhs5hl0 Resiliency at Massive Scale https://www.youtube.com/watch?v=ZfYJHtVL1_w Microservice Architecture https://www.youtube.com/watch?v=CriDUYtfrjs New projects for 2015 and Docker Packaging https://www.youtube.com/watch?v=hi7BDAtjfKY Spinnaker deployment pipeline https://www.youtube.com/watch?v=dwdVwE52KkU http://www.infoq.com/presentations/spring-cloud-2015 http://www.infoq.com/presentations/Twitter-Timeline-Scalability http://www.infoq.com/presentations/twitter-soa http://www.infoq.com/presentations/Zipkin http://www.infoq.com/presentations/scale-gilt Go-Kit https://www.youtube.com/watch?v=aL6sd4d4hxk http://www.infoq.com/presentations/circuit-breaking-distributed-systems https://speakerdeck.com/mattheath/scaling-micro-services-in-go-highload-plus-plus-2014

  16. Microservice Architectures Configuration Observability Tooling Discovery Routing Datastores Operational: Orchestration and Deployment Infrastructure Development: Languages and Container Policy: Architectural and Security Compliance

  17. Next Generation Applications Fill in the gaps, rapidly evolving ecosystem choices Archaius Zipkin Lambda Etcd Compose LaunchDarkly Prometheus Docker Eureka Linkerd Habitat Hystrix Spinnaker Consul Weave Configuration Observability Tooling Discovery Routing Datastores: Orchestrated, Distributed Ephemeral e.g. Cassandra, or DBaaS e.g. DynamoDB Operational: Mesos, Kubernetes, Swarm, Nomad for private clouds. ECS, Mesos, GKS for public Development: components interfaces languages e.g. Docker Hub, Artifactory, Datawire Quark, Go, Rust Policy: Security compliance e.g. Docker Content Trust. Architecture compliance e.g. Cloud Foundry

  18. In Search of Segmentation Ops Datacenters AWS Accounts AD/LDAP Roles IAM Roles VLAN Networks VPC Security Groups Hypervisor IPtables Calico Policy Docker Links Docker Net/Weave Dev @adrianco

  19. Hierarchical Segmentation AWS Account - Manage across multiple accounts VPC Z - Manage a small number of network spaces Homepage Team Security Group Reports Team Security Group B C E F A B C D D E F An AWS oriented example… @adrianco containers and links

  20. What’s Often Missing? Failure injection testing Versioning, routing Binary protocols and interfaces Timeouts and retries Denormalized data models Monitoring, tracing Simplicity through symmetry @adrianco

  21. Failure Injection Testing Netflix Chaos Monkey, Simian Army, FIT and Gremlin http://techblog.netflix.com/2011/07/netflix-simian-army.html http://techblog.netflix.com/2014/10/fit-failure-injection-testing.html http://techblog.netflix.com/2016/01/automated-failure-testing.html https://www.infoq.com/presentations/failure-test-research-netflix @adrianco

  22. Trust with Verification ● Chaos Monkey - enforcing stateless business logic ● Chaos Gorilla - enforcing zone isolation/replication ● Chaos Kong - enforcing region isolation/replication ● Security Monkey - watching for insecure configuration settings ● FIT & Gremlin - inject errors to enforce robust dependencies ● See over 100 NetflixOSS projects at netflix.github.com ● Get “Technical Indigestion” reading techblog.netflix.com

  23. Benefits of version aware routing Immediately and safely introduce a new version Canary test in production Use DIY feature flags or . Route clients to a version so they can’t get disrupted Change client or dependencies but not both at once Eventually remove old versions Incremental or infrequent “break the build” garbage collection @adrianco

  24. Versioning, Routing Version numbering: Interface.Feature.Bugfix V1.2.3 to V1.2.4 - Canary test then remove old version V1.2.x to V1.3.x - Canary test then remove or keep both Route V1.3.x clients to new version to get new feature Remove V1.2.x only after V1.3.x is found to work for V1.2.x clients V1.x.x to V2.x.x - Route clients to specific versions Remove old server version when all old clients are gone @adrianco

  25. Protocols Measure serialization, transmission, deserialization costs Sending a megabyte of XML between microservices will make you sad, but not as sad as 10yrs ago with SOAP Use Thrift, Protobuf/gRPC, Avro, SBE internally Use JSON for external/public interfaces https://github.com/real-logic/simple-binary-encoding @adrianco

  26. Interfaces When you build a service, build a “driver” client for it Reference implementation error handling and serialization Release automation stress test using client Validate that service interface is usable! Minimize additional dependencies Swagger - OpenAPI Specification Datawire Quark adds behaviors to API spec @adrianco

  27. Interface Version Pinning Change one thing at a time! Pin the version of everything else Incremental build/test/deploy pipeline Deploy existing app code with new platform Deploy existing app code with new dependencies Deploy new app code with pinned platform/dependencies @adrianco

  28. Interfaces between teams @adrianco

  29. Interfaces between teams Client Code Minimal Object Model @adrianco

  30. Interfaces between teams Client Service Code Code Full Object Minimal Model Object Model @adrianco

  31. Interfaces between teams Client Service Cache Code Code Code Decoupled Full Object Common Minimal object Model Object Model Object Model models @adrianco

  32. Interfaces between teams Client Service Cache Code Code Code Decoupled Full Object Common Minimal object Model Object Model Object Model models Service Service Driver Handler @adrianco

  33. Interfaces between teams Client Service Cache Code Code Code Decoupled Full Object Common Minimal object Model Object Model Object Model models Cache Cache Service Service Handler Driver Driver Handler @adrianco

  34. Interfaces between teams Client Service Cache Code Code Code Decoupled Full Object Common Minimal object Model Object Model Object Model models Cache Cache Service Service Handler Driver Driver Handler Platform Platform Platform @adrianco

  35. Interfaces between teams Client Service Cache Code Code Code Versioned dependency interfaces Decoupled Full Object Common Minimal object Model Object Model Object Model models Cache Cache Service Service Handler Driver Driver Handler Platform Platform Platform @adrianco

  36. Interfaces between teams Client Service Cache Code Code Code Versioned dependency interfaces Decoupled Full Object Common Minimal object Model Object Model Object Model Versioned models platform interface Cache Cache Service Service Handler Driver Driver Handler Platform Platform Platform @adrianco

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend