robson motta - computer on the beach 2014

56
Robson Motta | robson@chaordic.com.br Big Data e MapReduce Admirável mundo novo

Upload: robson-motta

Post on 27-Jan-2017

205 views

Category:

Technology


0 download

TRANSCRIPT

Page 1: Robson Motta - Computer on the beach 2014

Robson Motta | [email protected]

Big Data e MapReduceAdmirável mundo novo

Page 2: Robson Motta - Computer on the beach 2014
Page 3: Robson Motta - Computer on the beach 2014

Mais de200 milhões

page views mensais

Page 4: Robson Motta - Computer on the beach 2014

116 milhões de pedidos

Page 5: Robson Motta - Computer on the beach 2014

3 bilhõesde visitas

em produtos

Page 6: Robson Motta - Computer on the beach 2014

700 milhõesde recomendações

geradas diariamente

Page 7: Robson Motta - Computer on the beach 2014

Como armazenar?

Page 8: Robson Motta - Computer on the beach 2014

Como processar?

Page 9: Robson Motta - Computer on the beach 2014

Como visualizar?

Page 10: Robson Motta - Computer on the beach 2014

Como monitorar?

Page 11: Robson Motta - Computer on the beach 2014

Sumário

• A Chaordic

• Chaordic + Big Data + Cloud

• Dos eventos às recomendações

• A vida não é bela: surgem os desafios

• Visualizando e monitorando

• Futuro?

Page 12: Robson Motta - Computer on the beach 2014
Page 13: Robson Motta - Computer on the beach 2014

+

Como tudo começou

Page 14: Robson Motta - Computer on the beach 2014
Page 15: Robson Motta - Computer on the beach 2014

Como fazemosComofazemos?

Page 16: Robson Motta - Computer on the beach 2014

+

Page 17: Robson Motta - Computer on the beach 2014

• Volume

• Velocidade

• Variedade

Page 18: Robson Motta - Computer on the beach 2014

quantidade de dados

tempo de processamento

2010

16 M eventos 3 dias

Page 19: Robson Motta - Computer on the beach 2014

quantidade de dados

tempo de processamento

2010 2014

16 M eventos

4500 M eventos3 dias

Page 20: Robson Motta - Computer on the beach 2014

quantidade de dados

tempo de processamento

2010 2014

16 M eventos

4500 M eventos3 dias 7 horas

Page 21: Robson Motta - Computer on the beach 2014

Arquitetura

Onsite

DashboardEngine

Mail

Platform

Page 22: Robson Motta - Computer on the beach 2014

Como armazenar?

Node 1

Node 3

Node 2Node...

"Batch" Cassandra ClusterAvailability Zone - 2

Node 1

Node 3

Node 2Node...

"Online" Cassandra ClusterAvailability Zone - 1

Online Service Tier Batch Service Tier

Page 23: Robson Motta - Computer on the beach 2014

Como processar? MapReduce

Um novo paradigmaque permite e facilitaa implementação de

algoritmos distribuídos

Page 24: Robson Motta - Computer on the beach 2014

Data

Robson Motta Raul Seixas Ed Motta Reginaldo Rossi Nelson Mandela Valentino Rossi

Map

Motta, 1 Seixas, 1 Motta, 1 Rossi, 1 Mandela, 1 Rossi, 1

Mandela, (1) Motta, (1, 1) Rossi, (1, 1) Seixas, (1)

Reduce

Mandela, (1) Motta, (1, 1) Rossi, (1, 1) Seixas, (1)

Mandela, 1 Motta, 2 Rossi, 2 Seixas, 1

Como processar?

Page 25: Robson Motta - Computer on the beach 2014

Data

A - B Cadeira - D Cadeira - E Cadeira - E F - A

Map

A, (B, F) B, (A) Cadeira, (D, E, E) D, (Cadeira) E, (Cadeira,Cadeira) F, (A)

Reduce

A, [B, F] B, [A] Cadeira, [E, D] D, [Cadeira] E, [Cadeira] F, [A]

Como processar?

Page 26: Robson Motta - Computer on the beach 2014

Hadoop: HDFS e Hadoop MapReduce

• Escalável

• Custo reduzido

• Flexível

• Tolerante a falha

Como processar?

Page 27: Robson Motta - Computer on the beach 2014

Engine

3

Como processar?

Engine Core

Platform

EC2 + EMR

S3

Uploader

5

64

2

1

Page 28: Robson Motta - Computer on the beach 2014

recomendações

eventos

Page 29: Robson Motta - Computer on the beach 2014

recomendações

eventos

préprocessamento

processamento

pós processamento

● produtos vistos● cliques● pedidos

etc.

Page 30: Robson Motta - Computer on the beach 2014

• Itens muito populares• Eventos inesperados• Clientes diferentes• Sazonalidade• Ausência de eventos

Desafios

Page 31: Robson Motta - Computer on the beach 2014

Desafios

Page 32: Robson Motta - Computer on the beach 2014

Desafios

R$ 270,81

Usuário entrouna página paracomprar a boneca...

...e sugerimos que elelevasse junto um pneu

Page 33: Robson Motta - Computer on the beach 2014

Compras conjuntas?

Desafios

+

Page 34: Robson Motta - Computer on the beach 2014

Compras conjuntas?

Desafios

+

31

Page 35: Robson Motta - Computer on the beach 2014

Dados consistentes?

Desafios

+

Page 36: Robson Motta - Computer on the beach 2014

Dados consistentes?

Desafios

+

Page 37: Robson Motta - Computer on the beach 2014

Bot gerando eventos?

Desafios

+

Page 38: Robson Motta - Computer on the beach 2014

Bot gerando eventos?

Desafios

+

Page 39: Robson Motta - Computer on the beach 2014

Kit daprópria loja?

Desafios

+

Page 40: Robson Motta - Computer on the beach 2014

Desafios

+

Kit daprópria loja?

Page 41: Robson Motta - Computer on the beach 2014

Destaquessimultâneos?

Desafios

+

Page 42: Robson Motta - Computer on the beach 2014

Reduziramde preço?

Desafios

+

Page 43: Robson Motta - Computer on the beach 2014

Reduziramde preço?

Desafios

+...só o pneu

Page 44: Robson Motta - Computer on the beach 2014

Quandoreduziu?

Desafios

+

Page 45: Robson Motta - Computer on the beach 2014

Quandoreduziu?

Desafios

+

Page 46: Robson Motta - Computer on the beach 2014

Conclusão...Desafios

+

Page 47: Robson Motta - Computer on the beach 2014

Promoção de pneu no dia das crianças

Desafios

+

Page 48: Robson Motta - Computer on the beach 2014

Visualizandoe monitorando

Page 49: Robson Motta - Computer on the beach 2014

Visualizare monitorar

• Consultas em bases não relacionais

• Acompanhamento de desempenho

• Visualização de logs

• Acompanhamento de custos

Page 50: Robson Motta - Computer on the beach 2014

Visualizar

Page 51: Robson Motta - Computer on the beach 2014
Page 52: Robson Motta - Computer on the beach 2014
Page 53: Robson Motta - Computer on the beach 2014

KINESIS STORM

Real Time Big Data Processing

Futuro

Page 54: Robson Motta - Computer on the beach 2014

SHARK

In Memory Big Data Processing

Futuro

Page 55: Robson Motta - Computer on the beach 2014

Robson [email protected]

Page 56: Robson Motta - Computer on the beach 2014

/chaordic.com.br