cloud native enterprise

54
1 © Copyright 2015 Pivotal. All rights reserved. Cloud Native Enterprise PanGea [email protected] @JavaNinja github.com/vfonsecapv Cloud Hero @Pivotal

Upload: victor-fonseca

Post on 15-Apr-2017

277 views

Category:

Technology


0 download

TRANSCRIPT

Page 1: Cloud Native Enterprise

1 © Copyright 2015 Pivotal. All rights reserved.

Cloud Native Enterprise

PanGea

[email protected] @JavaNinja

github.com/vfonsecapv Cloud Hero @Pivotal

Page 2: Cloud Native Enterprise

2 © Copyright 2015 Pivotal. All rights reserved.

Agenda

●  Por quê?

●  O quê?

●  Como?

Page 3: Cloud Native Enterprise

3 © Copyright 2015 Pivotal. All rights reserved.

Por quê?

Page 4: Cloud Native Enterprise

4 © Copyright 2015 Pivotal. All rights reserved.

Software está mudando a indústria

Page 5: Cloud Native Enterprise

5 © Copyright 2015 Pivotal. All rights reserved. 5

CLOUD NATIVE

Cloud DevOps Agile Lean Continuous Delivery

Microservices

Page 6: Cloud Native Enterprise

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ó

Page 7: Cloud Native Enterprise

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

Page 8: Cloud Native Enterprise

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

Page 9: Cloud Native Enterprise

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

Page 10: Cloud Native Enterprise

10 © Copyright 2015 Pivotal. All rights reserved.

Andrew Zitney Senior Vice President Technology & Operations Inf

Services at Allstate

De 100 dias para uma semana...

Page 11: Cloud Native Enterprise

11 © Copyright 2015 Pivotal. All rights reserved.

Andrew Zitney Senior Vice President Technology & Operations Inf

Services at Allstate

Do passado para plataforma digital

Page 12: Cloud Native Enterprise

12 © Copyright 2015 Pivotal. All rights reserved.

O QUÊ?

Page 13: Cloud Native Enterprise

13 © Copyright 2015 Pivotal. All rights reserved.

Page 14: Cloud Native Enterprise

14 © Copyright 2015 Pivotal. All rights reserved.

Page 15: Cloud Native Enterprise

15 © Copyright 2015 Pivotal. All rights reserved.

Page 16: Cloud Native Enterprise

16 © Copyright 2015 Pivotal. All rights reserved.

Page 17: Cloud Native Enterprise

17 © Copyright 2015 Pivotal. All rights reserved.

Page 18: Cloud Native Enterprise

18 © Copyright 2015 Pivotal. All rights reserved.

Page 19: Cloud Native Enterprise

19 © Copyright 2015 Pivotal. All rights reserved.

Page 20: Cloud Native Enterprise

20 © Copyright 2015 Pivotal. All rights reserved.

Page 21: Cloud Native Enterprise

21 © Copyright 2015 Pivotal. All rights reserved.

Page 22: Cloud Native Enterprise

22 © Copyright 2015 Pivotal. All rights reserved.

Page 23: Cloud Native Enterprise

23 © Copyright 2015 Pivotal. All rights reserved.

Page 24: Cloud Native Enterprise

24 © Copyright 2015 Pivotal. All rights reserved.

Page 25: Cloud Native Enterprise

25 © Copyright 2015 Pivotal. All rights reserved.

Page 26: Cloud Native Enterprise

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

Page 27: Cloud Native Enterprise

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

Page 28: Cloud Native Enterprise

28 © Copyright 2015 Pivotal. All rights reserved.

Agile Delivery

Customer Feedback

Customer Delivery

Behavior Analytics

Design

Development

Test

Page 29: Cloud Native Enterprise

29 © Copyright 2015 Pivotal. All rights reserved.

WaterScrumFall

Organização Waterfall

Production Release #1

Production Release #2

Page 30: Cloud Native Enterprise

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

Page 31: Cloud Native Enterprise

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

Page 32: Cloud Native Enterprise

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

Page 33: Cloud Native Enterprise

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.

Page 34: Cloud Native Enterprise

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

Page 35: Cloud Native Enterprise

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

Page 36: Cloud Native Enterprise

36 © Copyright 2015 Pivotal. All rights reserved.

Exemplo de Microserviços

Page 37: Cloud Native Enterprise

37 © Copyright 2015 Pivotal. All rights reserved.

Microserviços é difícil…

Page 38: Cloud Native Enterprise

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

Page 39: Cloud Native Enterprise

39 © Copyright 2015 Pivotal. All rights reserved.

COMO?

Page 40: Cloud Native Enterprise

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.

Page 41: Cloud Native Enterprise

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

Page 42: Cloud Native Enterprise

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.

Page 43: Cloud Native Enterprise

43 © Copyright 2015 Pivotal. All rights reserved.

Spring Cloud

Page 44: Cloud Native Enterprise

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

Page 45: Cloud Native Enterprise

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

Page 46: Cloud Native Enterprise

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

Page 47: Cloud Native Enterprise

47 © Copyright 2015 Pivotal. All rights reserved.

Você precisa de uma plataforma

Infrastructure

Page 48: Cloud Native Enterprise

48 © Copyright 2015 Pivotal. All rights reserved. 48 © Copyright 2013 Pivotal. All rights reserved.

D E M O

Page 49: Cloud Native Enterprise

49 © Copyright 2015 Pivotal. All rights reserved.

COMO? Vamos começar…

Page 50: Cloud Native Enterprise

50 © Copyright 2015 Pivotal. All rights reserved.

By Matt Stine (@mstine) By Josh Long (@starbuxman) and Kenny Bastani

Literatura

Page 51: Cloud Native Enterprise

51 © Copyright 2015 Pivotal. All rights reserved.

Build - http://start.spring.io

Page 52: Cloud Native Enterprise

52 © Copyright 2015 Pivotal. All rights reserved. 52

Fundamentos

Page 53: Cloud Native Enterprise

53 © Copyright 2015 Pivotal. All rights reserved.

Fundamentos

53

Page 54: Cloud Native Enterprise

Pivotal Confidential–Internal Use Only

A NEW PLATFORM FOR A NEW ERA