SlideShare a Scribd company logo
1 of 57
Download to read offline
Quebrando o monólito!
Software
Engineer Rodrigo Orofino
@rorofino
Who am I?
Rio de Janeiro São Paulo&
8 Milhões
OLX
É PARA
TODOS
De brasileiros
utilizam a plataforma
todos os dias!
25%
DOS ITENS
VENDIDOS
Em até 24H
Nem sempre foi assim!
2011
~3 milhões PV
150 mil DAU
hoje
~400 milhões PV
8 milhões DAU
It’s over 12000%!
trans
Session
Arquitetura monolitica
Backend
Problema
Escalar horizontalmente era complicado
#1
Session
stick/pinning
A CADA
Mobile
became
our number
one
platform!
A CADA
Separação em time de produto e
micro services!
Ice
cream
Scoop
Strategy
account
service
auth
service
redis sessions
Primeira iteração
trans
Backend do
Monolito
API dos apps
Shared Tables
Proliferação dos micro serviços
account
service
auth
service
redis sessions
Antes
trans
Backend do
Monolito
API dos apps
account
service
auth
service
redis sessions
Depois
trans
Backend do
Monolito
API dos apps
Chat
Limites
Favorites Scarface
Many face
gods
Point of
sales
Payments
Ads
account
service
auth
service
redis sessions
Depois
trans
Backend do
Monolito
API dos apps
Chat
Limites
Favorites Scarface
Many face
gods
Point of
sales
Payments
Ads
account
service
auth
service
redis sessions
Depois
trans
Backend do
Monolito
API dos apps
Chat
Limites
Favorites Scarface
Many face
gods
Point of
sales
Payments
Ads
CAOS!
CUSTO MENSAL
(USD)
Elasticache (Redis) 60 Gb 1.500,00
C4.XLARGE 28 Instancias 6.000,00
7.500,00
Performance
`
Nova estratégia
Primeiro passo
Upstream
Backend do
Monolito
Chat
Limites FavoritesScarface
Many faced
gods
Point of
sales
Payments
Ad Insertion
Segundo passo
Preparar o
upstream
VPC
account
service
auth
service
Terceiro passo
Upstream
account
service
auth
service
Como funciona o nosso plugin?
Upstream
account
service
auth
service
Upstream
account
service
auth
service
Upstream
account
service
auth
service
Upstream
account
service
auth
service
Upstream
Informações no header
E aquele banco de dados?
Change Data Capture Event SourcingVS
account
service
auth
service
redis
Event sourcing
Upstream
Created Edited Deleted Login Logout
auth
service
redis
Upstream
Created Edited Deleted Login Logout
account
service
account
service
auth
service
redis
Upstream
Created Edited Deleted Login Logout
account
service
Upstream
Created Edited Deleted Login Logout
redis
auth
service
Resultados
CUSTO MENSAL
(USD)
Elasticache (Redis) 15 Gb 456,04
C5.LARGE 6 Instancias 373,43
RDS db.t2.large 122,56
949,62
Performance
Livros sobre o tema
Obrigado!
Rodrigo Orofino
rodrigo.orofino@gmail.com
https://www.linkedin.com/in/rodrigo-orofino/
LinkedIn

More Related Content

Similar to Passei direto 2020

Evolving big microservice architectures
Evolving big microservice architecturesEvolving big microservice architectures
Evolving big microservice architecturesNikolay Stoitsev
 
Offline First in React Native
Offline First in React NativeOffline First in React Native
Offline First in React NativeJosh Warwick
 
Evolution of the PayPal API Platform Enabling the future of Money at QCon San...
Evolution of the PayPal API Platform Enabling the future of Money at QCon San...Evolution of the PayPal API Platform Enabling the future of Money at QCon San...
Evolution of the PayPal API Platform Enabling the future of Money at QCon San...Deepak Nadig
 
Architecting eCommerce APIs - Gluecon 13
Architecting eCommerce APIs - Gluecon 13Architecting eCommerce APIs - Gluecon 13
Architecting eCommerce APIs - Gluecon 13Saranyan Vigraham
 
APIdays Mediterranea: APIs for Mobile Solutions. Context-Aware Apps: a busine...
APIdays Mediterranea: APIs for Mobile Solutions. Context-Aware Apps: a busine...APIdays Mediterranea: APIs for Mobile Solutions. Context-Aware Apps: a busine...
APIdays Mediterranea: APIs for Mobile Solutions. Context-Aware Apps: a busine...SOLUSOFT.ES
 
APIs - The Foundation of the Future Telco
APIs - The Foundation of the Future TelcoAPIs - The Foundation of the Future Telco
APIs - The Foundation of the Future TelcoWSO2
 
Houston_June_23 Kore_SL_FINAL
Houston_June_23 Kore_SL_FINALHouston_June_23 Kore_SL_FINAL
Houston_June_23 Kore_SL_FINALSam Lakkundi
 
Transform Your Business with API-led Connectivity
Transform Your Business with API-led ConnectivityTransform Your Business with API-led Connectivity
Transform Your Business with API-led ConnectivityMuleSoft
 
Craft Conference 2015 - Evolution of the PayPal API: Platform & Culture
Craft Conference 2015 - Evolution of the PayPal API: Platform & CultureCraft Conference 2015 - Evolution of the PayPal API: Platform & Culture
Craft Conference 2015 - Evolution of the PayPal API: Platform & CultureDeepak Nadig
 
DeveloperWeek 2016 - Evolution of the PayPal Platform: Journey to APIs & Micr...
DeveloperWeek 2016 - Evolution of the PayPal Platform: Journey to APIs & Micr...DeveloperWeek 2016 - Evolution of the PayPal Platform: Journey to APIs & Micr...
DeveloperWeek 2016 - Evolution of the PayPal Platform: Journey to APIs & Micr...Deepak Nadig
 
Evolution of PayPal API Platform at API Meetup
Evolution of PayPal API Platform at API MeetupEvolution of PayPal API Platform at API Meetup
Evolution of PayPal API Platform at API MeetupDeepak Nadig
 
OroCRM CTO Yoav Kutner Presents at Meet Magento
OroCRM CTO Yoav Kutner Presents at Meet MagentoOroCRM CTO Yoav Kutner Presents at Meet Magento
OroCRM CTO Yoav Kutner Presents at Meet MagentoJary Carter
 
"Fintech inside of a SaaS powered by 2000+ Microservices", Volodymyr Malyk
"Fintech inside of a SaaS powered by 2000+ Microservices", Volodymyr Malyk"Fintech inside of a SaaS powered by 2000+ Microservices", Volodymyr Malyk
"Fintech inside of a SaaS powered by 2000+ Microservices", Volodymyr MalykFwdays
 
The Robot and the Cloud
The Robot and the CloudThe Robot and the Cloud
The Robot and the CloudSteven Cooper
 
Sencha Auckland Conference (SenchaCon) AdvanceRetail Presentation
Sencha Auckland Conference (SenchaCon) AdvanceRetail PresentationSencha Auckland Conference (SenchaCon) AdvanceRetail Presentation
Sencha Auckland Conference (SenchaCon) AdvanceRetail PresentationAndrew Bell
 
Dubbo and Weidian's practice on micro-service architecture
Dubbo and Weidian's practice on micro-service architectureDubbo and Weidian's practice on micro-service architecture
Dubbo and Weidian's practice on micro-service architectureHuxing Zhang
 
API-led Architecture
API-led ArchitectureAPI-led Architecture
API-led ArchitectureTecholution
 
apidays LIVE Paris - The Business of APIs by Jed Ng
apidays LIVE Paris - The Business of APIs by Jed Ngapidays LIVE Paris - The Business of APIs by Jed Ng
apidays LIVE Paris - The Business of APIs by Jed Ngapidays
 
An overview of the Cryptocurrency Exchange script for the crypto trading busi...
An overview of the Cryptocurrency Exchange script for the crypto trading busi...An overview of the Cryptocurrency Exchange script for the crypto trading busi...
An overview of the Cryptocurrency Exchange script for the crypto trading busi...john20244202
 

Similar to Passei direto 2020 (20)

Evolving big microservice architectures
Evolving big microservice architecturesEvolving big microservice architectures
Evolving big microservice architectures
 
Offline First in React Native
Offline First in React NativeOffline First in React Native
Offline First in React Native
 
Evolution of the PayPal API Platform Enabling the future of Money at QCon San...
Evolution of the PayPal API Platform Enabling the future of Money at QCon San...Evolution of the PayPal API Platform Enabling the future of Money at QCon San...
Evolution of the PayPal API Platform Enabling the future of Money at QCon San...
 
Architecting eCommerce APIs - Gluecon 13
Architecting eCommerce APIs - Gluecon 13Architecting eCommerce APIs - Gluecon 13
Architecting eCommerce APIs - Gluecon 13
 
APIdays Mediterranea: APIs for Mobile Solutions. Context-Aware Apps: a busine...
APIdays Mediterranea: APIs for Mobile Solutions. Context-Aware Apps: a busine...APIdays Mediterranea: APIs for Mobile Solutions. Context-Aware Apps: a busine...
APIdays Mediterranea: APIs for Mobile Solutions. Context-Aware Apps: a busine...
 
APIs - The Foundation of the Future Telco
APIs - The Foundation of the Future TelcoAPIs - The Foundation of the Future Telco
APIs - The Foundation of the Future Telco
 
Houston_June_23 Kore_SL_FINAL
Houston_June_23 Kore_SL_FINALHouston_June_23 Kore_SL_FINAL
Houston_June_23 Kore_SL_FINAL
 
Transform Your Business with API-led Connectivity
Transform Your Business with API-led ConnectivityTransform Your Business with API-led Connectivity
Transform Your Business with API-led Connectivity
 
Craft Conference 2015 - Evolution of the PayPal API: Platform & Culture
Craft Conference 2015 - Evolution of the PayPal API: Platform & CultureCraft Conference 2015 - Evolution of the PayPal API: Platform & Culture
Craft Conference 2015 - Evolution of the PayPal API: Platform & Culture
 
DeveloperWeek 2016 - Evolution of the PayPal Platform: Journey to APIs & Micr...
DeveloperWeek 2016 - Evolution of the PayPal Platform: Journey to APIs & Micr...DeveloperWeek 2016 - Evolution of the PayPal Platform: Journey to APIs & Micr...
DeveloperWeek 2016 - Evolution of the PayPal Platform: Journey to APIs & Micr...
 
Evolution of PayPal API Platform at API Meetup
Evolution of PayPal API Platform at API MeetupEvolution of PayPal API Platform at API Meetup
Evolution of PayPal API Platform at API Meetup
 
OroCRM CTO Yoav Kutner Presents at Meet Magento
OroCRM CTO Yoav Kutner Presents at Meet MagentoOroCRM CTO Yoav Kutner Presents at Meet Magento
OroCRM CTO Yoav Kutner Presents at Meet Magento
 
"Fintech inside of a SaaS powered by 2000+ Microservices", Volodymyr Malyk
"Fintech inside of a SaaS powered by 2000+ Microservices", Volodymyr Malyk"Fintech inside of a SaaS powered by 2000+ Microservices", Volodymyr Malyk
"Fintech inside of a SaaS powered by 2000+ Microservices", Volodymyr Malyk
 
The Robot and the Cloud
The Robot and the CloudThe Robot and the Cloud
The Robot and the Cloud
 
Sencha Auckland Conference (SenchaCon) AdvanceRetail Presentation
Sencha Auckland Conference (SenchaCon) AdvanceRetail PresentationSencha Auckland Conference (SenchaCon) AdvanceRetail Presentation
Sencha Auckland Conference (SenchaCon) AdvanceRetail Presentation
 
The API (R) Evolution
The API (R) EvolutionThe API (R) Evolution
The API (R) Evolution
 
Dubbo and Weidian's practice on micro-service architecture
Dubbo and Weidian's practice on micro-service architectureDubbo and Weidian's practice on micro-service architecture
Dubbo and Weidian's practice on micro-service architecture
 
API-led Architecture
API-led ArchitectureAPI-led Architecture
API-led Architecture
 
apidays LIVE Paris - The Business of APIs by Jed Ng
apidays LIVE Paris - The Business of APIs by Jed Ngapidays LIVE Paris - The Business of APIs by Jed Ng
apidays LIVE Paris - The Business of APIs by Jed Ng
 
An overview of the Cryptocurrency Exchange script for the crypto trading busi...
An overview of the Cryptocurrency Exchange script for the crypto trading busi...An overview of the Cryptocurrency Exchange script for the crypto trading busi...
An overview of the Cryptocurrency Exchange script for the crypto trading busi...
 

Recently uploaded

Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsUnveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsAlberto González Trastoy
 
Right Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsRight Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsJhone kinadey
 
How To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.jsHow To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.jsAndolasoft Inc
 
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...soniya singh
 
A Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxA Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxComplianceQuest1
 
Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language ModelsUnlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Modelsaagamshah0812
 
Test Automation Strategy for Frontend and Backend
Test Automation Strategy for Frontend and BackendTest Automation Strategy for Frontend and Backend
Test Automation Strategy for Frontend and BackendArshad QA
 
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdfThe Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdfkalichargn70th171
 
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...ICS
 
Active Directory Penetration Testing, cionsystems.com.pdf
Active Directory Penetration Testing, cionsystems.com.pdfActive Directory Penetration Testing, cionsystems.com.pdf
Active Directory Penetration Testing, cionsystems.com.pdfCionsystems
 
Project Based Learning (A.I).pptx detail explanation
Project Based Learning (A.I).pptx detail explanationProject Based Learning (A.I).pptx detail explanation
Project Based Learning (A.I).pptx detail explanationkaushalgiri8080
 
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...OnePlan Solutions
 
HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comHR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comFatema Valibhai
 
Professional Resume Template for Software Developers
Professional Resume Template for Software DevelopersProfessional Resume Template for Software Developers
Professional Resume Template for Software DevelopersVinodh Ram
 
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️anilsa9823
 
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfkalichargn70th171
 
Cloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStackCloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStackVICTOR MAESTRE RAMIREZ
 
What is Binary Language? Computer Number Systems
What is Binary Language?  Computer Number SystemsWhat is Binary Language?  Computer Number Systems
What is Binary Language? Computer Number SystemsJheuzeDellosa
 

Recently uploaded (20)

Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsUnveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
 
Right Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsRight Money Management App For Your Financial Goals
Right Money Management App For Your Financial Goals
 
How To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.jsHow To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.js
 
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
 
A Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxA Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docx
 
Call Girls In Mukherjee Nagar 📱 9999965857 🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
Call Girls In Mukherjee Nagar 📱  9999965857  🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...Call Girls In Mukherjee Nagar 📱  9999965857  🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
Call Girls In Mukherjee Nagar 📱 9999965857 🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
 
Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language ModelsUnlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Models
 
Test Automation Strategy for Frontend and Backend
Test Automation Strategy for Frontend and BackendTest Automation Strategy for Frontend and Backend
Test Automation Strategy for Frontend and Backend
 
Exploring iOS App Development: Simplifying the Process
Exploring iOS App Development: Simplifying the ProcessExploring iOS App Development: Simplifying the Process
Exploring iOS App Development: Simplifying the Process
 
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdfThe Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
 
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
 
Active Directory Penetration Testing, cionsystems.com.pdf
Active Directory Penetration Testing, cionsystems.com.pdfActive Directory Penetration Testing, cionsystems.com.pdf
Active Directory Penetration Testing, cionsystems.com.pdf
 
Project Based Learning (A.I).pptx detail explanation
Project Based Learning (A.I).pptx detail explanationProject Based Learning (A.I).pptx detail explanation
Project Based Learning (A.I).pptx detail explanation
 
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
 
HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comHR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.com
 
Professional Resume Template for Software Developers
Professional Resume Template for Software DevelopersProfessional Resume Template for Software Developers
Professional Resume Template for Software Developers
 
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️
 
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
 
Cloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStackCloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStack
 
What is Binary Language? Computer Number Systems
What is Binary Language?  Computer Number SystemsWhat is Binary Language?  Computer Number Systems
What is Binary Language? Computer Number Systems
 

Passei direto 2020