What an Enterprise Can Learn from Netflix, a Cloud-native Company (ENT203) | AWS re:Invent 2013
Cloud Native Enterprise
-
Upload
victor-fonseca -
Category
Technology
-
view
272 -
download
0
Transcript of Cloud Native Enterprise
1 © Copyright 2015 Pivotal. All rights reserved.
Cloud Native Enterprise
PanGea
[email protected] @JavaNinja
github.com/vfonsecapv Cloud Hero @Pivotal
2 © Copyright 2015 Pivotal. All rights reserved.
Agenda
● Por quê?
● O quê?
● Como?
3 © Copyright 2015 Pivotal. All rights reserved.
Por quê?
4 © Copyright 2015 Pivotal. All rights reserved.
Software está mudando a indústria
5 © Copyright 2015 Pivotal. All rights reserved. 5
CLOUD NATIVE
Cloud DevOps Agile Lean Continuous Delivery
Microservices
6 © Copyright 2015 Pivotal. All rights reserved.
A promessa do Cloud Native
• Novas idéias imediatamente • Total automatização • Infraestrutura escalavel barata • Aplicação e plataforma são uma só
7 © Copyright 2015 Pivotal. All rights reserved.
Escalar apps na cloud é melhor e diferente
2X
Vertical Devagar, Caro!
Horizontal Rápido, Barato!
1x 1x 1x
1X 512mb
1024mb
1x
512mb 512mb 512mb 512mb
8 © Copyright 2015 Pivotal. All rights reserved.
Frustração com App Servers pesados e complexos
Complexo, caro para escalar (ou impossível) Difícil para adicionar novas features para app
Ambiente dos sonhos para dev + ops acelera apps delivery
9 © Copyright 2015 Pivotal. All rights reserved.
75%
25%
Apps serão cada vez mais construídas do que compradas
O Gartner prevê que até 2020,
de aplicações que suportam negócio digital serão "construídas” e não “compradas”
Fonte: Gartner Newsroom, Agosto 2015
10 © Copyright 2015 Pivotal. All rights reserved.
Andrew Zitney Senior Vice President Technology & Operations Inf
Services at Allstate
De 100 dias para uma semana...
11 © Copyright 2015 Pivotal. All rights reserved.
Andrew Zitney Senior Vice President Technology & Operations Inf
Services at Allstate
Do passado para plataforma digital
12 © Copyright 2015 Pivotal. All rights reserved.
O QUÊ?
13 © Copyright 2015 Pivotal. All rights reserved.
14 © Copyright 2015 Pivotal. All rights reserved.
15 © Copyright 2015 Pivotal. All rights reserved.
16 © Copyright 2015 Pivotal. All rights reserved.
17 © Copyright 2015 Pivotal. All rights reserved.
18 © Copyright 2015 Pivotal. All rights reserved.
19 © Copyright 2015 Pivotal. All rights reserved.
20 © Copyright 2015 Pivotal. All rights reserved.
21 © Copyright 2015 Pivotal. All rights reserved.
22 © Copyright 2015 Pivotal. All rights reserved.
23 © Copyright 2015 Pivotal. All rights reserved.
24 © Copyright 2015 Pivotal. All rights reserved.
25 © Copyright 2015 Pivotal. All rights reserved.
26 © Copyright 2015 Pivotal. All rights reserved.
● Continuously Delivered ● Twelve Factor Apps (http://12factor.net/) ● Microserviços ● Self-Service agile infrastructure ● Colaboração por APIs ● Antifragilidade sem downtime
Características das Cloud Native Architectures
27 © Copyright 2015 Pivotal. All rights reserved.
Bus
ines
s
Continuous Delivery
Idéia
Dev
elop
men
t
$
QA
Ope
ratio
ns
Cus
tom
er
Valor
Companhias disruptivas, entregam mais valor
28 © Copyright 2015 Pivotal. All rights reserved.
Agile Delivery
Customer Feedback
Customer Delivery
Behavior Analytics
Design
Development
Test
29 © Copyright 2015 Pivotal. All rights reserved.
WaterScrumFall
Organização Waterfall
Production Release #1
Production Release #2
30 © Copyright 2015 Pivotal. All rights reserved.
Continuous Delivery + Agile Delivery
CO
MP
RA
E
NV
IO
Production Release
Production Release
Production Release
Production Release
31 © Copyright 2015 Pivotal. All rights reserved.
Lei de Conway
http://www.melconway.com/Home/Committees_Paper.html
“Organizações que desenvolvem sistemas de software tendem a produzir sistemas que são cópias das estruturas de comunicação dessas organizações.”
- Melvin Conway, 1967
32 © Copyright 2015 Pivotal. All rights reserved.
Twelve-Factor Apps
1. Codebase 2. Dependencies 3. Configuration 4. Backing Services 5. Build, release, run 6. Processes 7. Port binding 8. Concurrency 9. Disposability 10. Dev/prod parity 11. Logs 12. Admin processes
Pivotal Cloud Foundry PaaS
APPS
Padrões para cloud– http://12factor.net
contrato
33 © Copyright 2015 Pivotal. All rights reserved.
Microserviços: Definição
Apps monolíticas, onde o valor e o negócio se perdem.
SOA tradicional, cada pedaço da torta deve ser igual. Microserviços, cada peça é
individual e responsável por si.
34 © Copyright 2015 Pivotal. All rights reserved.
Microserviços não SÃO!
Data Access
Service
HTML JavaScript MVC
Service
Monolithic Application
Enterprise Service Bus
Service
Service
Service
Service
Centralizadas Acopladas
OU
35 © Copyright 2015 Pivotal. All rights reserved.
Arquitetura de Microserviços
35
…
HTTP
HTTP
HTTP
HTTP
HTTP
HTTP
AMQP AMQP
Relational DB
Key/Value Store
Graph DB
36 © Copyright 2015 Pivotal. All rights reserved.
Exemplo de Microserviços
37 © Copyright 2015 Pivotal. All rights reserved.
Microserviços é difícil…
38 © Copyright 2015 Pivotal. All rights reserved.
• Configuration Management • Service Registration & Discovery • Routing & Load Balancing • Fault Tolerance (Circuit Breakers) • Monitoring • Concurrent API Aggregation & Transformation
Desafios de sistemas distribuídos
39 © Copyright 2015 Pivotal. All rights reserved.
COMO?
40 © Copyright 2015 Pivotal. All rights reserved.
É necessário uma plataforma (PCF)
Uma plataforma completa que garante a melhores práticas para implementar aplicações
distribuídas, novas apps voltadas ao negócio digital.
41 © Copyright 2015 Pivotal. All rights reserved.
2. Container Runtime Dev+Ops
*Contratos entre aplicações, clouds e infraestrutura aceleram o processo de desenvolvimento e a entrega de valor.
Anatomia de uma Cloud Native Platform
Contract – 12 Factor App
Contract – BOSH Release
Contract – Cloud Provider Interface
1. Application Framework Developer
IT Ops 3. Infrastructure Automation
4. Infrastructure IT Ops
42 © Copyright 2015 Pivotal. All rights reserved.
Spring
#1 Enterprise Java App Framework Netflix Open Source
Spring Boot
Apps entregues na velocidade da luz Sem configuração Simples e poderoso
Spring Cloud
Distributed Config Service Registration and Discovery Routing/Load Balancing Service Integration Fault Tolerance Pivotal é a principal guardião da SpringSource e temos os principais commiters disponíveis para ajudar nossos clientes a
acelerar essa jornada.
43 © Copyright 2015 Pivotal. All rights reserved.
Spring Cloud
44 © Copyright 2015 Pivotal. All rights reserved. 44
Seja disruptivo como o Netflix • Netflix precisava ser mais rápido do que os concorrentes • Pioneiro em microservices, a chave para seu sucesso • Netflix OSS fornece peças, mas não é uma solução • Difícil para as empresas para construir por si próprios • Pivotal oferece a coisa mais próxima de "Netflix em uma
caixa" hoje
45 © Copyright 2015 Pivotal. All rights reserved.
Spring Cloud Services Suite
Install Config
Manage
Secure Spring Cloud
Services
Config Server
Service Registry
Circuit Breaker Dashboard
46 © Copyright 2015 Pivotal. All rights reserved.
Spring Boot Adoption
0
200.000
400.000
600.000
800.000
1.000.000
1.200.000
1.400.000
1.600.000
1.800.000
jul/14 ago/14 set/14 out/14 nov/14 dez/14 jan/15 fev/15 mar/15
abr/15 mai/15 jun/15 jul/15
Spring Boot Maven Downloads
1.65M
1.47M
1.18M 1.31M
1.07M
Source: oss.sonatype.org
47 © Copyright 2015 Pivotal. All rights reserved.
Você precisa de uma plataforma
Infrastructure
48 © Copyright 2015 Pivotal. All rights reserved. 48 © Copyright 2013 Pivotal. All rights reserved.
D E M O
49 © Copyright 2015 Pivotal. All rights reserved.
COMO? Vamos começar…
50 © Copyright 2015 Pivotal. All rights reserved.
By Matt Stine (@mstine) By Josh Long (@starbuxman) and Kenny Bastani
Literatura
51 © Copyright 2015 Pivotal. All rights reserved.
Build - http://start.spring.io
52 © Copyright 2015 Pivotal. All rights reserved. 52
Fundamentos
53 © Copyright 2015 Pivotal. All rights reserved.
Fundamentos
53
Pivotal Confidential–Internal Use Only
A NEW PLATFORM FOR A NEW ERA