SlideShare a Scribd company logo
1 of 78
Download to read offline
A arquitetura de um chat integrado ao
checkout
Mario Amaral
linkedin: https://br.linkedin.com/in/mariofts
twitter: @mario_fts
Envie sua dúvida no Twitter!
#elo7tech
Wifi: cubo-eventos
Senha: cubo2016
Evolução tecnológica
• Backend
• Frontend
• Produto
Evoluindo o
BACKEND
http://www.joelonsoftware.com/articles/fog0000000069.html
Evoluir o sistema
sem parar de
funcionar ?
FC
V
M
C
FC
V
M
C
FC
V
M
C
FC
V
M
C
FC
V
M
C
FC
V
M
C
FC
V
M
C
FC
V
M
C
FC
V
M
C
FC
V
M
C
FC
V
M
C
FC
V
M
C
FC
V
M
C
FC
V
M
C
FC
V
M
C
FC
V
M
C
FC
V
M
C
FC
V
M
C
FC
V
M
C
FC
V
M
C
FC
V
M
C
FC
V
M
C
FC
V
M
C
FC
V
M
C
FC
V
M
C
FC
V
M
C
FC
V
M
C
FC
V
M
C
FC
V
M
C
FC
V
M
C
FC
V
M
C
FC
V
M
C
FC
V
M
C
FC
V
M
C
FC
V
M
C
FC
V
M
C
FC
V
M
C
FC
V
M
C
FC
V
M
C
Implementando o
chat
Envia Msg
Recebe Msg
Ajax Polling
http://bstavroulakis.com/blog/web/real-time-web-applications/
Não escala.
1 req/sX
550.740
req/min
Wow!
WebSockets
WebSockets
http://bstavroulakis.com/blog/web/real-time-web-applications/
Não é a solução
perfeita
Loadbalancer
Marketplace
FilaMarketplace
Chat
Publisher
Chat
Service
Loadbalancer
websocket websocket
POST
HTTP
Discovery
Broadcast
A
B
Mas e nos Apps?
FilaMarketplace
Push
Publisher
POST
HTTP
Amazon
SNS
Backendrecap
• 2 frameworks MVC simultâneos
• Teste de micro serviços para chat
Evoluindo o
FRONTEND
REST
json
Marketplace
HTTP
html
Views diferentes
Views diferentes
REST
json
Marketplace
HTTP/REST
html/json
Duplicação de código
Backend Frontend
Endpoint JSP
Controller Javascript
Isomorphic
Javascript
http://nerds.airbnb.com/isomorphic-javascript-future-web-apps/
http://nerds.airbnb.com/isomorphic-javascript-future-web-apps/
1 - [get/post]
2 - JSON [post]3 - Parcial HTML
4 - Complete HTML
HTML
HTML
1 - fetch templates [get]
2 - template (js+css+html)
HTML
+
template
HTML
+
template
HTML
+
template
1 -fetch data [get]
2 - JSON
3 - Template + JSON
Frontend
• Javascript isomórfico
• JS Template engine
recap
Evoluindo o
PRODUTO
Testes
A/B
Buckets
Features Flags
Buckets
Bucket
Filter
bucket=2567
/DISPLAY_CART_CHAT_ICON/2567
true
cookie:
bucket=2567
Controle de buckets
Feature Flag
/ACTIVE_FREE_SHIPMENT
true
user_id =
33456
Métricas
MUITAS
Métricas
MUITAS
Métricas
MUITAS
Métricas
MUITAS
Métricas
MUITAS
Métricas
MUITAS
Métricas
MUITAS
Métricas
Produto
• Teste A/B para novas features
• Métricas em todo o sistema
recap
Obrigado!
Mario Amaral
linkedin: https://br.linkedin.com/in/mariofts
twitter: @mario_fts

More Related Content

Recently uploaded

Recently uploaded (9)

Boas práticas de programação com Object Calisthenics
Boas práticas de programação com Object CalisthenicsBoas práticas de programação com Object Calisthenics
Boas práticas de programação com Object Calisthenics
 
Padrões de Projeto: Proxy e Command com exemplo
Padrões de Projeto: Proxy e Command com exemploPadrões de Projeto: Proxy e Command com exemplo
Padrões de Projeto: Proxy e Command com exemplo
 
ATIVIDADE 1 - CUSTOS DE PRODUÇÃO - 52_2024.docx
ATIVIDADE 1 - CUSTOS DE PRODUÇÃO - 52_2024.docxATIVIDADE 1 - CUSTOS DE PRODUÇÃO - 52_2024.docx
ATIVIDADE 1 - CUSTOS DE PRODUÇÃO - 52_2024.docx
 
ATIVIDADE 1 - ESTRUTURA DE DADOS II - 52_2024.docx
ATIVIDADE 1 - ESTRUTURA DE DADOS II - 52_2024.docxATIVIDADE 1 - ESTRUTURA DE DADOS II - 52_2024.docx
ATIVIDADE 1 - ESTRUTURA DE DADOS II - 52_2024.docx
 
Luís Kitota AWS Discovery Day Ka Solution.pdf
Luís Kitota AWS Discovery Day Ka Solution.pdfLuís Kitota AWS Discovery Day Ka Solution.pdf
Luís Kitota AWS Discovery Day Ka Solution.pdf
 
Programação Orientada a Objetos - 4 Pilares.pdf
Programação Orientada a Objetos - 4 Pilares.pdfProgramação Orientada a Objetos - 4 Pilares.pdf
Programação Orientada a Objetos - 4 Pilares.pdf
 
ATIVIDADE 1 - LOGÍSTICA EMPRESARIAL - 52_2024.docx
ATIVIDADE 1 - LOGÍSTICA EMPRESARIAL - 52_2024.docxATIVIDADE 1 - LOGÍSTICA EMPRESARIAL - 52_2024.docx
ATIVIDADE 1 - LOGÍSTICA EMPRESARIAL - 52_2024.docx
 
ATIVIDADE 1 - SISTEMAS DISTRIBUÍDOS E REDES - 52_2024.docx
ATIVIDADE 1 - SISTEMAS DISTRIBUÍDOS E REDES - 52_2024.docxATIVIDADE 1 - SISTEMAS DISTRIBUÍDOS E REDES - 52_2024.docx
ATIVIDADE 1 - SISTEMAS DISTRIBUÍDOS E REDES - 52_2024.docx
 
ATIVIDADE 1 - GCOM - GESTÃO DA INFORMAÇÃO - 54_2024.docx
ATIVIDADE 1 - GCOM - GESTÃO DA INFORMAÇÃO - 54_2024.docxATIVIDADE 1 - GCOM - GESTÃO DA INFORMAÇÃO - 54_2024.docx
ATIVIDADE 1 - GCOM - GESTÃO DA INFORMAÇÃO - 54_2024.docx
 

Featured

How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
 

Featured (20)

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 

A arquitetura de um chat integrado ao checkout