42
Microservices in Production by Timo Derstappen CTO & Founder at Giant Swarm

Voxxed Days Thessaloniki 2016 - Microservices in production

Embed Size (px)

Citation preview

Page 1: Voxxed Days Thessaloniki 2016 - Microservices in production

Microservices inProduction

by Timo Derstappen CTO & Founder at Giant Swarm

Page 2: Voxxed Days Thessaloniki 2016 - Microservices in production

Managed Microservice infrastructure

Page 3: Voxxed Days Thessaloniki 2016 - Microservices in production

Fully-managed Kubernetes Datacenter Agnostic Enterprise Ready

Page 4: Voxxed Days Thessaloniki 2016 - Microservices in production

Overview Microservices Container Infrastructures Why Metrics First? Metrics in Kubernetes Packaging up your apps Build to Evolve

Page 5: Voxxed Days Thessaloniki 2016 - Microservices in production

Microservices Not a holy grail More a practice than an architecture

Page 6: Voxxed Days Thessaloniki 2016 - Microservices in production

Mindset Use the right tool for the job Polyglot Automate Build, measure, learn

Page 7: Voxxed Days Thessaloniki 2016 - Microservices in production

Benefits Separation of concerns Lock-free development between teams Independent technology decisions Iterate faster

Page 8: Voxxed Days Thessaloniki 2016 - Microservices in production

Drawbacks No free lunch Complexity doesn't go away

Page 9: Voxxed Days Thessaloniki 2016 - Microservices in production
Page 10: Voxxed Days Thessaloniki 2016 - Microservices in production

Resilient, globally distributed services

Architectural Decisions REST vs MQ Reads, Writes, Throughput Latency, Availability MTTR, MTTF

Page 11: Voxxed Days Thessaloniki 2016 - Microservices in production

Overview Microservices Container Infrastructures Why Metrics First? Metrics in Kubernetes Packaging up your apps Build to Evolve

Page 12: Voxxed Days Thessaloniki 2016 - Microservices in production

APIs everywhere Software defined Everything Everything is code

Page 13: Voxxed Days Thessaloniki 2016 - Microservices in production

Intent-driven Policy-based infrastructure Primitives over Frameworks

Page 14: Voxxed Days Thessaloniki 2016 - Microservices in production

Kubernetes

Page 15: Voxxed Days Thessaloniki 2016 - Microservices in production

Prometheus

pull metrics

HDD /SSD

Pushgateway

Short-livedjobs

Jobs /Exporters

StorageRetrieval PromQL

PrometheusServer

Node

ServiceDiscovery

             find                  targets

PrometheusServer

Alertmanager

push alerts         

Web UI

PromDash

Grafana

API clients

PagerDuty Email

DNSKubernetesConsul...Custom integration

              notify

...

Page 16: Voxxed Days Thessaloniki 2016 - Microservices in production

API

Cluster Service

Certificate Service

ConfigurationService

KubernetesService

userd tokend companyd clusterd

etcd

G8s APIG8s Scheduler

G8s ControllerManager

etcd

G8s SchedulerG8s Scheduler

G8s Kubelets

K8s Masters

K8s Workers

Quobyte

etcd

Vault

K8s API IngressK8s Masters

K8s Masters

K8s WorkersK8s Workers

Cluster Admin

Customer CD

Developer

Ingress Controller INTERNET

G8s

K8s

Mayu

MGMT

Secret Service

Domain Validation

Calico

Flannel

FlannelFlannel

Flannel

Page 17: Voxxed Days Thessaloniki 2016 - Microservices in production

Chicken & Egg Infrastructures itself are Microservices Same principles for underlying platform

Page 18: Voxxed Days Thessaloniki 2016 - Microservices in production

The SRE was born

Page 19: Voxxed Days Thessaloniki 2016 - Microservices in production
Page 20: Voxxed Days Thessaloniki 2016 - Microservices in production

Overview Microservices Container Infrastructures Why Metrics First? Metrics in Kubernetes Packaging up your apps Build to Evolve

Page 21: Voxxed Days Thessaloniki 2016 - Microservices in production

Data-driven

Page 22: Voxxed Days Thessaloniki 2016 - Microservices in production

"You build it, you run it"

Page 23: Voxxed Days Thessaloniki 2016 - Microservices in production

How to own something youhaven't build?

Page 24: Voxxed Days Thessaloniki 2016 - Microservices in production

Excursus: HomeOpsHeating Dashboard

Page 25: Voxxed Days Thessaloniki 2016 - Microservices in production

 

Page 26: Voxxed Days Thessaloniki 2016 - Microservices in production

Ownership3rd party software without an owner

=> Legacy from day one

Page 27: Voxxed Days Thessaloniki 2016 - Microservices in production

With Metrics youwork on the right thingswork on the important thingswhich improves quality and speed

Page 28: Voxxed Days Thessaloniki 2016 - Microservices in production

AirbnbValuation: $30b$900m revenue last year500 experiments per week on the platform (=Software updates)2000 metrics tracked to improve bookings andconversion rate

Page 29: Voxxed Days Thessaloniki 2016 - Microservices in production

Overview Microservices Container Infrastructures Why Metrics First? Metrics in Kubernetes Packaging up your apps Build to Evolve

Page 30: Voxxed Days Thessaloniki 2016 - Microservices in production

Metrics in K8sMany tools and productsIntegrated into service discoveryCluster drill downFiltering via labels

Page 31: Voxxed Days Thessaloniki 2016 - Microservices in production
Page 32: Voxxed Days Thessaloniki 2016 - Microservices in production
Page 33: Voxxed Days Thessaloniki 2016 - Microservices in production

 

Page 34: Voxxed Days Thessaloniki 2016 - Microservices in production

Overview Microservices Container Infrastructures Why Metrics First? Metrics in Kubernetes Packaging up your apps Build to Evolve

Page 35: Voxxed Days Thessaloniki 2016 - Microservices in production

All Batteries included?Container imageService definitionMetrics endpointDashboardsLabels

Page 36: Voxxed Days Thessaloniki 2016 - Microservices in production

StandardsCNCF creates recommendations - not standardslabel-schema.orgKubernetes SIG AppsEstablish your conventions for labels & metrics

Page 37: Voxxed Days Thessaloniki 2016 - Microservices in production

Overview Microservices Container Infrastructures Why Metrics First? Metrics in Kubernetes Packaging up your apps Build to Evolve

Page 38: Voxxed Days Thessaloniki 2016 - Microservices in production

It's 2016! Agile Test driven Clean code

Page 39: Voxxed Days Thessaloniki 2016 - Microservices in production

EncourageEvaluate & ExperimentMeasure & LearnRetrospective & PostmortemsTechnical Wealth

Page 40: Voxxed Days Thessaloniki 2016 - Microservices in production

CollaborateArchitecture ReviewsLet the team find their goalsDraw together

Page 41: Voxxed Days Thessaloniki 2016 - Microservices in production

CELEBRATEMORE!

Page 42: Voxxed Days Thessaloniki 2016 - Microservices in production

Thanks for listening!Timo Derstappen

@teemow