PHP Experience 2016 - [Palestra] Scaling with Microservice

iMasters
iMastersjornalista, web editor, web writer, tradutora (en-pt/pt-en) at iMasters
PHP Experience 2016 - IT Master
First 90Scaling
With
Microservice
This is our vision
Building the foundation to Build a 3B Company by FY20
Agenda
+ What we call Microservices ?
+ Benefit and Challenge
+ Scaling in MercadoLivre
+ Lessons Learned
PHP Experience 2016 - [Palestra] Scaling with Microservice
PHP Experience 2016 - [Palestra] Scaling with Microservice
Microservices
is a new "tag" for
things we are already
doing.
This is our vision
Building the foundation to Build a 3B Company by FY20
Vs
Monolithic vs Microservices
A Tiny Definition of
Microservices
Small Autonomous services
communicating with each other
using language-agnostic APIs.
+ Different languages, databases, hardware ...
+ Each service can be deployed independently
+ The services are easy to replace
+ Improved fault isolation
Benefit
+ Operations Overhead
+ Avoid Nanoservice
+ Implicit Interfaces
+ Network communication
Challenge
Scaling
in
MercadoLivre
“Scalability Porn”
18.000.000 Request per minutes
400 Deploys per days
700 Developers in 6 development centers
20.000 Virtual servers
1.500 Physical servers
Microservices - API MercadoLibre
Services Communicate -> HTTP/REST with JSON
API Gateway -> NGINX
NGINX
User Service
Item Service
Categories Service
Lessons
learned
Cache everything
Reuse HTTP headers
GET https://api.mercadolibre.com/sites/MLB
HTTP/1.1 200 OK
Cache-Control: max-age=60, stale-while-revalidate=240
{........}
200 & 206 Partial Content
Designed to worst-case
VIP
User Service
Reputation
Service
User Service
Reputation
Service
VIP
Online GET vs Background update
Resources with few changes and many outbuildings
User Service
Item Service
Categories Services
Search Service
- Dump all categories
- Update each 10 minutes
Duplicate Data
Each department can have a copy of the data
POST Item
Item Service
Search Service
Moderation Service
Queue Service
Item DB
Item DB (partial copy)
Item DB (partial copy)
Thank
You
?
1 of 19

Recommended

API Management within a Microservice Architecture by
API Management within a Microservice ArchitectureAPI Management within a Microservice Architecture
API Management within a Microservice ArchitectureWSO2
2.8K views81 slides
Intro to Azure Api Management - With Cats by
Intro to Azure Api Management - With CatsIntro to Azure Api Management - With Cats
Intro to Azure Api Management - With CatsXamariners
201 views37 slides
SaaS Ventures: Introduction by
SaaS Ventures: IntroductionSaaS Ventures: Introduction
SaaS Ventures: IntroductionRob Bertholf
2.2K views22 slides
Demystifying API Management for Serverless Services by
Demystifying  API Management  for Serverless ServicesDemystifying  API Management  for Serverless Services
Demystifying API Management for Serverless ServicesVanjikumaran Sivajothy
69 views22 slides
SOA and API Convergence Strategy and Tactics by
SOA and API Convergence Strategy and TacticsSOA and API Convergence Strategy and Tactics
SOA and API Convergence Strategy and TacticsChris Haddad
6.4K views24 slides
Effective API Gateway by
Effective API GatewayEffective API Gateway
Effective API GatewayHari Wiz
217 views10 slides

More Related Content

What's hot

Azure API management dive deep GAB2017 by
Azure API management dive deep GAB2017Azure API management dive deep GAB2017
Azure API management dive deep GAB2017Jorge Arteiro
691 views24 slides
Microservices: Utilizando o Twitter como Plataforma by
Microservices: Utilizando o Twitter como PlataformaMicroservices: Utilizando o Twitter como Plataforma
Microservices: Utilizando o Twitter como PlataformaJuliana Chahoud
1.1K views51 slides
Microservices Architecture by
Microservices ArchitectureMicroservices Architecture
Microservices ArchitectureRam Vijapurapu
248 views32 slides
apidays LIVE Hong Kong - The Future of Legacy - How to leverage legacy and on... by
apidays LIVE Hong Kong - The Future of Legacy - How to leverage legacy and on...apidays LIVE Hong Kong - The Future of Legacy - How to leverage legacy and on...
apidays LIVE Hong Kong - The Future of Legacy - How to leverage legacy and on...apidays
46 views15 slides
Open Bank Project Presentation Tel Aviv CA 4th April 2017 by
Open Bank Project Presentation Tel Aviv CA 4th April 2017 Open Bank Project Presentation Tel Aviv CA 4th April 2017
Open Bank Project Presentation Tel Aviv CA 4th April 2017 simonredfern
955 views28 slides
Deep-Dive: Secure API Management by
Deep-Dive: Secure API ManagementDeep-Dive: Secure API Management
Deep-Dive: Secure API ManagementApigee | Google Cloud
13.4K views37 slides

What's hot(20)

Azure API management dive deep GAB2017 by Jorge Arteiro
Azure API management dive deep GAB2017Azure API management dive deep GAB2017
Azure API management dive deep GAB2017
Jorge Arteiro691 views
Microservices: Utilizando o Twitter como Plataforma by Juliana Chahoud
Microservices: Utilizando o Twitter como PlataformaMicroservices: Utilizando o Twitter como Plataforma
Microservices: Utilizando o Twitter como Plataforma
Juliana Chahoud1.1K views
apidays LIVE Hong Kong - The Future of Legacy - How to leverage legacy and on... by apidays
apidays LIVE Hong Kong - The Future of Legacy - How to leverage legacy and on...apidays LIVE Hong Kong - The Future of Legacy - How to leverage legacy and on...
apidays LIVE Hong Kong - The Future of Legacy - How to leverage legacy and on...
apidays46 views
Open Bank Project Presentation Tel Aviv CA 4th April 2017 by simonredfern
Open Bank Project Presentation Tel Aviv CA 4th April 2017 Open Bank Project Presentation Tel Aviv CA 4th April 2017
Open Bank Project Presentation Tel Aviv CA 4th April 2017
simonredfern955 views
Why WSO2 for Digital Transformation by WSO2
Why WSO2 for Digital TransformationWhy WSO2 for Digital Transformation
Why WSO2 for Digital Transformation
WSO2455 views
wso2 masterclass italia #13 - Open Healthcare: interoperabilità e sicurezza ... by Profesia Srl, Lynx Group
wso2 masterclass italia #13 - Open Healthcare: interoperabilità e sicurezza ...wso2 masterclass italia #13 - Open Healthcare: interoperabilità e sicurezza ...
wso2 masterclass italia #13 - Open Healthcare: interoperabilità e sicurezza ...
[WSO2Con USA 2018] Skate to Where the Puck Will Be: Building the Wells Fargo ... by WSO2
[WSO2Con USA 2018] Skate to Where the Puck Will Be: Building the Wells Fargo ...[WSO2Con USA 2018] Skate to Where the Puck Will Be: Building the Wells Fargo ...
[WSO2Con USA 2018] Skate to Where the Puck Will Be: Building the Wells Fargo ...
WSO2547 views
Design patterns talk_node_summit by Shubhra Kar
Design patterns talk_node_summitDesign patterns talk_node_summit
Design patterns talk_node_summit
Shubhra Kar1.6K views
Baas to-saab by ritc
Baas to-saabBaas to-saab
Baas to-saab
ritc596 views
Managing Sensitive Information in an API and Microservices World by Apigee | Google Cloud
Managing Sensitive Information in an API and Microservices WorldManaging Sensitive Information in an API and Microservices World
Managing Sensitive Information in an API and Microservices World
Overview of Mobile Backend as a Service by Vishal Jain
Overview of Mobile Backend as a ServiceOverview of Mobile Backend as a Service
Overview of Mobile Backend as a Service
Vishal Jain1.3K views
Connect js nodejs_api_shubhra by Shubhra Kar
Connect js nodejs_api_shubhraConnect js nodejs_api_shubhra
Connect js nodejs_api_shubhra
Shubhra Kar1.4K views
[API Meetup Tokyo #7 ~PaaSとAPIスペシャル~] AzureでMobile / Webアプリのサーバー側をAPI化 (Azure... by Naoki (Neo) SATO
[API Meetup Tokyo #7 ~PaaSとAPIスペシャル~] AzureでMobile / Webアプリのサーバー側をAPI化 (Azure...[API Meetup Tokyo #7 ~PaaSとAPIスペシャル~] AzureでMobile / Webアプリのサーバー側をAPI化 (Azure...
[API Meetup Tokyo #7 ~PaaSとAPIスペシャル~] AzureでMobile / Webアプリのサーバー側をAPI化 (Azure...
Naoki (Neo) SATO1.7K views
WSO2 & AAA Ohio Automobile Club by WSO2
WSO2 & AAA Ohio Automobile ClubWSO2 & AAA Ohio Automobile Club
WSO2 & AAA Ohio Automobile Club
WSO21.3K views

Similar to PHP Experience 2016 - [Palestra] Scaling with Microservice

[WSO2 Integration Summit New York 2019] API-Driven World by
[WSO2 Integration Summit New York 2019] API-Driven World[WSO2 Integration Summit New York 2019] API-Driven World
[WSO2 Integration Summit New York 2019] API-Driven WorldWSO2
215 views42 slides
API-led Architecture by
API-led ArchitectureAPI-led Architecture
API-led ArchitectureTecholution
397 views15 slides
[WSO2 Summit Brazil 2018] The API-driven World by
[WSO2 Summit Brazil 2018] The API-driven World[WSO2 Summit Brazil 2018] The API-driven World
[WSO2 Summit Brazil 2018] The API-driven WorldWSO2
449 views50 slides
How to Choose the Right Technology, Framework or Tool to Build Microservices by
How to Choose the Right Technology, Framework or Tool to Build MicroservicesHow to Choose the Right Technology, Framework or Tool to Build Microservices
How to Choose the Right Technology, Framework or Tool to Build MicroservicesKai Wähner
21.7K views83 slides
2018 Year in Review and 2019 Targets - A Year of WSO2 Integration Agility by
2018 Year in Review and 2019 Targets - A Year of WSO2 Integration Agility2018 Year in Review and 2019 Targets - A Year of WSO2 Integration Agility
2018 Year in Review and 2019 Targets - A Year of WSO2 Integration AgilityWSO2
399 views26 slides
WSO2 - Yenlo Integration Summit Stuttgart 15 May 2019 - API and Cell-based Ar... by
WSO2 - Yenlo Integration Summit Stuttgart 15 May 2019 - API and Cell-based Ar...WSO2 - Yenlo Integration Summit Stuttgart 15 May 2019 - API and Cell-based Ar...
WSO2 - Yenlo Integration Summit Stuttgart 15 May 2019 - API and Cell-based Ar...Yenlo
697 views39 slides

Similar to PHP Experience 2016 - [Palestra] Scaling with Microservice(20)

[WSO2 Integration Summit New York 2019] API-Driven World by WSO2
[WSO2 Integration Summit New York 2019] API-Driven World[WSO2 Integration Summit New York 2019] API-Driven World
[WSO2 Integration Summit New York 2019] API-Driven World
WSO2215 views
API-led Architecture by Techolution
API-led ArchitectureAPI-led Architecture
API-led Architecture
Techolution397 views
[WSO2 Summit Brazil 2018] The API-driven World by WSO2
[WSO2 Summit Brazil 2018] The API-driven World[WSO2 Summit Brazil 2018] The API-driven World
[WSO2 Summit Brazil 2018] The API-driven World
WSO2449 views
How to Choose the Right Technology, Framework or Tool to Build Microservices by Kai Wähner
How to Choose the Right Technology, Framework or Tool to Build MicroservicesHow to Choose the Right Technology, Framework or Tool to Build Microservices
How to Choose the Right Technology, Framework or Tool to Build Microservices
Kai Wähner21.7K views
2018 Year in Review and 2019 Targets - A Year of WSO2 Integration Agility by WSO2
2018 Year in Review and 2019 Targets - A Year of WSO2 Integration Agility2018 Year in Review and 2019 Targets - A Year of WSO2 Integration Agility
2018 Year in Review and 2019 Targets - A Year of WSO2 Integration Agility
WSO2399 views
WSO2 - Yenlo Integration Summit Stuttgart 15 May 2019 - API and Cell-based Ar... by Yenlo
WSO2 - Yenlo Integration Summit Stuttgart 15 May 2019 - API and Cell-based Ar...WSO2 - Yenlo Integration Summit Stuttgart 15 May 2019 - API and Cell-based Ar...
WSO2 - Yenlo Integration Summit Stuttgart 15 May 2019 - API and Cell-based Ar...
Yenlo697 views
[WSO2 Integration Summit Madrid 2019] Emerging Architecture Patterns: API-cen... by WSO2
[WSO2 Integration Summit Madrid 2019] Emerging Architecture Patterns: API-cen...[WSO2 Integration Summit Madrid 2019] Emerging Architecture Patterns: API-cen...
[WSO2 Integration Summit Madrid 2019] Emerging Architecture Patterns: API-cen...
WSO2203 views
[WSO2 Integration Summit Paris 2019] Emerging Architecture Patterns API-centr... by WSO2
[WSO2 Integration Summit Paris 2019] Emerging Architecture Patterns API-centr...[WSO2 Integration Summit Paris 2019] Emerging Architecture Patterns API-centr...
[WSO2 Integration Summit Paris 2019] Emerging Architecture Patterns API-centr...
WSO2412 views
[WSO2 Integration Summit Stuttgart 2019] Emerging Architecture Patterns: API-... by WSO2
[WSO2 Integration Summit Stuttgart 2019] Emerging Architecture Patterns: API-...[WSO2 Integration Summit Stuttgart 2019] Emerging Architecture Patterns: API-...
[WSO2 Integration Summit Stuttgart 2019] Emerging Architecture Patterns: API-...
WSO2319 views
[WSO2 Integration Summit Nairobi 2019] Emerging Architecture Patterns: API-ce... by WSO2
[WSO2 Integration Summit Nairobi 2019] Emerging Architecture Patterns: API-ce...[WSO2 Integration Summit Nairobi 2019] Emerging Architecture Patterns: API-ce...
[WSO2 Integration Summit Nairobi 2019] Emerging Architecture Patterns: API-ce...
WSO2260 views
Open API Strategy, by Sensedia by Sensedia
Open API Strategy, by SensediaOpen API Strategy, by Sensedia
Open API Strategy, by Sensedia
Sensedia4.4K views
Design - Start Your API Journey Today by LaurenWendler
Design - Start Your API Journey TodayDesign - Start Your API Journey Today
Design - Start Your API Journey Today
LaurenWendler289 views
Transform Your Business with API-led Connectivity by MuleSoft
Transform Your Business with API-led ConnectivityTransform Your Business with API-led Connectivity
Transform Your Business with API-led Connectivity
MuleSoft5.4K views
Cloud Native Middleware Microservices - Lessons Learned with Docker, Kubernet... by Kai Wähner
Cloud Native Middleware Microservices - Lessons Learned with Docker, Kubernet...Cloud Native Middleware Microservices - Lessons Learned with Docker, Kubernet...
Cloud Native Middleware Microservices - Lessons Learned with Docker, Kubernet...
Kai Wähner3K views
Microservices = Death of the Enterprise Service Bus (ESB)? by Kai Wähner
Microservices = Death of the Enterprise Service Bus (ESB)?Microservices = Death of the Enterprise Service Bus (ESB)?
Microservices = Death of the Enterprise Service Bus (ESB)?
Kai Wähner35.5K views
Platform governance, gestire un ecosistema di microservizi a livello enterprise by Giulio Roggero
Platform governance, gestire un ecosistema di microservizi a livello enterprisePlatform governance, gestire un ecosistema di microservizi a livello enterprise
Platform governance, gestire un ecosistema di microservizi a livello enterprise
Giulio Roggero183 views
Χάρης Λιναρδάκης, IBM Cloud Leader Greece and Cyprus at IBM by Starttech Ventures
Χάρης Λιναρδάκης, IBM Cloud Leader Greece and Cyprus at IBMΧάρης Λιναρδάκης, IBM Cloud Leader Greece and Cyprus at IBM
Χάρης Λιναρδάκης, IBM Cloud Leader Greece and Cyprus at IBM
Starttech Ventures855 views
[WSO2Con EU 2018] Keynote - The API Driven World by WSO2
[WSO2Con EU 2018] Keynote - The API Driven World[WSO2Con EU 2018] Keynote - The API Driven World
[WSO2Con EU 2018] Keynote - The API Driven World
WSO2883 views

More from iMasters

O que você precisa saber para modelar bancos de dados NoSQL - Dani Monteiro by
O que você precisa saber para modelar bancos de dados NoSQL - Dani MonteiroO que você precisa saber para modelar bancos de dados NoSQL - Dani Monteiro
O que você precisa saber para modelar bancos de dados NoSQL - Dani MonteiroiMasters
1.4K views40 slides
Postgres: wanted, beloved or dreaded? - Fabio Telles by
Postgres: wanted, beloved or dreaded? - Fabio TellesPostgres: wanted, beloved or dreaded? - Fabio Telles
Postgres: wanted, beloved or dreaded? - Fabio TellesiMasters
603 views51 slides
Por que minha query esta lenta? - Suellen Moraes by
Por que minha query esta lenta? - Suellen MoraesPor que minha query esta lenta? - Suellen Moraes
Por que minha query esta lenta? - Suellen MoraesiMasters
370 views12 slides
Relato das trincheiras: o dia a dia de uma consultoria de banco de dados - Ig... by
Relato das trincheiras: o dia a dia de uma consultoria de banco de dados - Ig...Relato das trincheiras: o dia a dia de uma consultoria de banco de dados - Ig...
Relato das trincheiras: o dia a dia de uma consultoria de banco de dados - Ig...iMasters
298 views9 slides
ORMs heróis ou vilões dentro da arquitetura de dados? - Otávio gonçalves by
ORMs heróis ou vilões dentro da arquitetura de dados? - Otávio gonçalvesORMs heróis ou vilões dentro da arquitetura de dados? - Otávio gonçalves
ORMs heróis ou vilões dentro da arquitetura de dados? - Otávio gonçalvesiMasters
324 views31 slides
SQL e NoSQL trabalhando juntos: uma comparação para obter o melhor de ambos -... by
SQL e NoSQL trabalhando juntos: uma comparação para obter o melhor de ambos -...SQL e NoSQL trabalhando juntos: uma comparação para obter o melhor de ambos -...
SQL e NoSQL trabalhando juntos: uma comparação para obter o melhor de ambos -...iMasters
1.7K views52 slides

More from iMasters(20)

O que você precisa saber para modelar bancos de dados NoSQL - Dani Monteiro by iMasters
O que você precisa saber para modelar bancos de dados NoSQL - Dani MonteiroO que você precisa saber para modelar bancos de dados NoSQL - Dani Monteiro
O que você precisa saber para modelar bancos de dados NoSQL - Dani Monteiro
iMasters1.4K views
Postgres: wanted, beloved or dreaded? - Fabio Telles by iMasters
Postgres: wanted, beloved or dreaded? - Fabio TellesPostgres: wanted, beloved or dreaded? - Fabio Telles
Postgres: wanted, beloved or dreaded? - Fabio Telles
iMasters603 views
Por que minha query esta lenta? - Suellen Moraes by iMasters
Por que minha query esta lenta? - Suellen MoraesPor que minha query esta lenta? - Suellen Moraes
Por que minha query esta lenta? - Suellen Moraes
iMasters370 views
Relato das trincheiras: o dia a dia de uma consultoria de banco de dados - Ig... by iMasters
Relato das trincheiras: o dia a dia de uma consultoria de banco de dados - Ig...Relato das trincheiras: o dia a dia de uma consultoria de banco de dados - Ig...
Relato das trincheiras: o dia a dia de uma consultoria de banco de dados - Ig...
iMasters298 views
ORMs heróis ou vilões dentro da arquitetura de dados? - Otávio gonçalves by iMasters
ORMs heróis ou vilões dentro da arquitetura de dados? - Otávio gonçalvesORMs heróis ou vilões dentro da arquitetura de dados? - Otávio gonçalves
ORMs heróis ou vilões dentro da arquitetura de dados? - Otávio gonçalves
iMasters324 views
SQL e NoSQL trabalhando juntos: uma comparação para obter o melhor de ambos -... by iMasters
SQL e NoSQL trabalhando juntos: uma comparação para obter o melhor de ambos -...SQL e NoSQL trabalhando juntos: uma comparação para obter o melhor de ambos -...
SQL e NoSQL trabalhando juntos: uma comparação para obter o melhor de ambos -...
iMasters1.7K views
Arquitetando seus dados na prática para a LGPD - Alessandra Martins by iMasters
Arquitetando seus dados na prática para a LGPD - Alessandra MartinsArquitetando seus dados na prática para a LGPD - Alessandra Martins
Arquitetando seus dados na prática para a LGPD - Alessandra Martins
iMasters3.3K views
O papel do DBA no mundo de ciência de dados e machine learning - Mauro Pichil... by iMasters
O papel do DBA no mundo de ciência de dados e machine learning - Mauro Pichil...O papel do DBA no mundo de ciência de dados e machine learning - Mauro Pichil...
O papel do DBA no mundo de ciência de dados e machine learning - Mauro Pichil...
iMasters287 views
Desenvolvimento Mobile Híbrido, Nativo ou Web: Quando usá-los - Juliana Chahoud by iMasters
Desenvolvimento Mobile Híbrido, Nativo ou Web: Quando usá-los - Juliana ChahoudDesenvolvimento Mobile Híbrido, Nativo ou Web: Quando usá-los - Juliana Chahoud
Desenvolvimento Mobile Híbrido, Nativo ou Web: Quando usá-los - Juliana Chahoud
iMasters950 views
Use MDD e faça as máquinas trabalharem para você - Andreza Leite by iMasters
 Use MDD e faça as máquinas trabalharem para você - Andreza Leite Use MDD e faça as máquinas trabalharem para você - Andreza Leite
Use MDD e faça as máquinas trabalharem para você - Andreza Leite
iMasters682 views
Entendendo os porquês do seu servidor - Talita Bernardes by iMasters
Entendendo os porquês do seu servidor - Talita BernardesEntendendo os porquês do seu servidor - Talita Bernardes
Entendendo os porquês do seu servidor - Talita Bernardes
iMasters544 views
Backend performático além do "coloca mais máquina lá" - Diana Arnos by iMasters
Backend performático além do "coloca mais máquina lá" - Diana ArnosBackend performático além do "coloca mais máquina lá" - Diana Arnos
Backend performático além do "coloca mais máquina lá" - Diana Arnos
iMasters477 views
Dicas para uma maior performance em APIs REST - Renato Groffe by iMasters
Dicas para uma maior performance em APIs REST - Renato GroffeDicas para uma maior performance em APIs REST - Renato Groffe
Dicas para uma maior performance em APIs REST - Renato Groffe
iMasters595 views
7 dicas de desempenho que equivalem por 21 - Danielle Monteiro by iMasters
7 dicas de desempenho que equivalem por 21 - Danielle Monteiro7 dicas de desempenho que equivalem por 21 - Danielle Monteiro
7 dicas de desempenho que equivalem por 21 - Danielle Monteiro
iMasters475 views
Quem se importa com acessibilidade Web? - Mauricio Maujor by iMasters
Quem se importa com acessibilidade Web? - Mauricio MaujorQuem se importa com acessibilidade Web? - Mauricio Maujor
Quem se importa com acessibilidade Web? - Mauricio Maujor
iMasters480 views
Service Mesh com Istio e Kubernetes - Wellington Figueira da Silva by iMasters
Service Mesh com Istio e Kubernetes - Wellington Figueira da SilvaService Mesh com Istio e Kubernetes - Wellington Figueira da Silva
Service Mesh com Istio e Kubernetes - Wellington Figueira da Silva
iMasters604 views
Erros: Como eles vivem, se alimentam e se reproduzem? - Augusto Pascutti by iMasters
Erros: Como eles vivem, se alimentam e se reproduzem? - Augusto PascuttiErros: Como eles vivem, se alimentam e se reproduzem? - Augusto Pascutti
Erros: Como eles vivem, se alimentam e se reproduzem? - Augusto Pascutti
iMasters559 views
Elasticidade e engenharia de banco de dados para alta performance - Rubens G... by iMasters
Elasticidade e engenharia de banco de dados para alta performance  - Rubens G...Elasticidade e engenharia de banco de dados para alta performance  - Rubens G...
Elasticidade e engenharia de banco de dados para alta performance - Rubens G...
iMasters569 views
Construindo aplicações mais confiantes - Carolina Karklis by iMasters
Construindo aplicações mais confiantes - Carolina KarklisConstruindo aplicações mais confiantes - Carolina Karklis
Construindo aplicações mais confiantes - Carolina Karklis
iMasters477 views
Monitoramento de Aplicações - Felipe Regalgo by iMasters
Monitoramento de Aplicações - Felipe RegalgoMonitoramento de Aplicações - Felipe Regalgo
Monitoramento de Aplicações - Felipe Regalgo
iMasters709 views

Recently uploaded

MercerJesse2.1Doc.pdf by
MercerJesse2.1Doc.pdfMercerJesse2.1Doc.pdf
MercerJesse2.1Doc.pdfjessemercerail
314 views5 slides
Creative Restart 2023: Atila Martins - Craft: A Necessity, Not a Choice by
Creative Restart 2023: Atila Martins - Craft: A Necessity, Not a ChoiceCreative Restart 2023: Atila Martins - Craft: A Necessity, Not a Choice
Creative Restart 2023: Atila Martins - Craft: A Necessity, Not a ChoiceTaste
45 views50 slides
JQUERY.pdf by
JQUERY.pdfJQUERY.pdf
JQUERY.pdfArthyR3
105 views22 slides
Education of marginalized and socially disadvantages segments.pptx by
Education of marginalized and socially disadvantages segments.pptxEducation of marginalized and socially disadvantages segments.pptx
Education of marginalized and socially disadvantages segments.pptxGarimaBhati5
43 views36 slides
INT-244 Topic 6b Confucianism by
INT-244 Topic 6b ConfucianismINT-244 Topic 6b Confucianism
INT-244 Topic 6b ConfucianismS Meyer
45 views77 slides
Java Simplified: Understanding Programming Basics by
Java Simplified: Understanding Programming BasicsJava Simplified: Understanding Programming Basics
Java Simplified: Understanding Programming BasicsAkshaj Vadakkath Joshy
653 views155 slides

Recently uploaded(20)

Creative Restart 2023: Atila Martins - Craft: A Necessity, Not a Choice by Taste
Creative Restart 2023: Atila Martins - Craft: A Necessity, Not a ChoiceCreative Restart 2023: Atila Martins - Craft: A Necessity, Not a Choice
Creative Restart 2023: Atila Martins - Craft: A Necessity, Not a Choice
Taste45 views
JQUERY.pdf by ArthyR3
JQUERY.pdfJQUERY.pdf
JQUERY.pdf
ArthyR3105 views
Education of marginalized and socially disadvantages segments.pptx by GarimaBhati5
Education of marginalized and socially disadvantages segments.pptxEducation of marginalized and socially disadvantages segments.pptx
Education of marginalized and socially disadvantages segments.pptx
GarimaBhati543 views
INT-244 Topic 6b Confucianism by S Meyer
INT-244 Topic 6b ConfucianismINT-244 Topic 6b Confucianism
INT-244 Topic 6b Confucianism
S Meyer45 views
NodeJS and ExpressJS.pdf by ArthyR3
NodeJS and ExpressJS.pdfNodeJS and ExpressJS.pdf
NodeJS and ExpressJS.pdf
ArthyR348 views
11.30.23A Poverty and Inequality in America.pptx by mary850239
11.30.23A Poverty and Inequality in America.pptx11.30.23A Poverty and Inequality in America.pptx
11.30.23A Poverty and Inequality in America.pptx
mary850239130 views
Guess Papers ADC 1, Karachi University by Khalid Aziz
Guess Papers ADC 1, Karachi UniversityGuess Papers ADC 1, Karachi University
Guess Papers ADC 1, Karachi University
Khalid Aziz99 views
Six Sigma Concept by Sahil Srivastava.pptx by Sahil Srivastava
Six Sigma Concept by Sahil Srivastava.pptxSix Sigma Concept by Sahil Srivastava.pptx
Six Sigma Concept by Sahil Srivastava.pptx
Sahil Srivastava44 views
Parts of Speech (1).pptx by mhkpreet001
Parts of Speech (1).pptxParts of Speech (1).pptx
Parts of Speech (1).pptx
mhkpreet00146 views
Monthly Information Session for MV Asterix (November) by Esquimalt MFRC
Monthly Information Session for MV Asterix (November)Monthly Information Session for MV Asterix (November)
Monthly Information Session for MV Asterix (November)
Esquimalt MFRC107 views

PHP Experience 2016 - [Palestra] Scaling with Microservice

  • 1. PHP Experience 2016 - IT Master First 90Scaling With Microservice
  • 2. This is our vision Building the foundation to Build a 3B Company by FY20 Agenda + What we call Microservices ? + Benefit and Challenge + Scaling in MercadoLivre + Lessons Learned
  • 5. Microservices is a new "tag" for things we are already doing.
  • 6. This is our vision Building the foundation to Build a 3B Company by FY20 Vs Monolithic vs Microservices
  • 7. A Tiny Definition of Microservices Small Autonomous services communicating with each other using language-agnostic APIs.
  • 8. + Different languages, databases, hardware ... + Each service can be deployed independently + The services are easy to replace + Improved fault isolation Benefit
  • 9. + Operations Overhead + Avoid Nanoservice + Implicit Interfaces + Network communication Challenge
  • 11. “Scalability Porn” 18.000.000 Request per minutes 400 Deploys per days 700 Developers in 6 development centers 20.000 Virtual servers 1.500 Physical servers
  • 12. Microservices - API MercadoLibre Services Communicate -> HTTP/REST with JSON API Gateway -> NGINX NGINX User Service Item Service Categories Service
  • 14. Cache everything Reuse HTTP headers GET https://api.mercadolibre.com/sites/MLB HTTP/1.1 200 OK Cache-Control: max-age=60, stale-while-revalidate=240 {........}
  • 15. 200 & 206 Partial Content Designed to worst-case VIP User Service Reputation Service User Service Reputation Service VIP
  • 16. Online GET vs Background update Resources with few changes and many outbuildings User Service Item Service Categories Services Search Service - Dump all categories - Update each 10 minutes
  • 17. Duplicate Data Each department can have a copy of the data POST Item Item Service Search Service Moderation Service Queue Service Item DB Item DB (partial copy) Item DB (partial copy)
  • 19. ?