Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
TDC Globo Sistemas Distribuídos
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
Breno Ferreira
August 24, 2021
Technology
100
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
TDC Globo Sistemas Distribuídos
Breno Ferreira
August 24, 2021
More Decks by Breno Ferreira
See All by Breno Ferreira
Trabalho Remoto TDC Globo 2020
brenoferreira
1
120
Immutable Da
brenoferreira
0
98
Remote Work
brenoferreira
0
100
Fun with Types
brenoferreira
0
240
Monads na prática - QConSP 2014
brenoferreira
0
130
RxJava
brenoferreira
1
410
.NET Além do Mundo Microsoft
brenoferreira
0
100
TDC2013 - Programação assíncrona com Javascript
brenoferreira
1
580
TDD com Javascript
brenoferreira
1
520
Other Decks in Technology
See All in Technology
AI時代に求められる技術力 フロンティア・クリエイティビティ / Technical Excellence in the AI Era: Frontier Creativity
kaonavi
0
100
AIAU_UMEMOGU_ninomiya_slide
ninomiya_ii
0
260
水を運ぶ人としてのリーダーシップ
izumii19
4
1k
週末にループ・エンジニアリングの理解を深めるためのスライド
nagatsu
0
270
元・セキュリティ学習経験0大学生による業務紹介 / An Introduction to the Job by a Former College Student with Zero Security Training Experience
nttcom
0
170
サイバーエージェントにおけるAI推進戦略と変革への取り組み
shotatsuge
0
560
時期が悪い!それでもRaspberry Piを買って遊んで活用するには / 20260627-osc26do-rpi-jikigawarui
akkiesoft
0
820
PostgreSQL 19 新機能概要 OSC Hokkaido 2026
nori_shinoda
0
240
Flow 不死:AI 時代 DevOps 的不變本質
cheng_wei_chen
2
510
AI Agentをシステムに組み込む前にゆるく向き合ってみる
hayama17
0
140
AIが自律的に回る開発ループを設計してチーム開発に組み込む
nekorush14
0
130
アラート調査向けAIエージェントの本番導入とその後/AI Agents for Alert Investigation: Production Deployment and After
taddy_919
0
140
Featured
See All Featured
The Limits of Empathy - UXLibs8
cassininazir
1
370
The AI Revolution Will Not Be Monopolized: How open-source beats economies of scale, even for LLMs
inesmontani
PRO
3
3.5k
Agile that works and the tools we love
rasmusluckow
331
22k
A designer walks into a library…
pauljervisheath
211
24k
Paper Plane (Part 1)
katiecoart
PRO
0
9.2k
Claude Code どこまでも/ Claude Code Everywhere
nwiizo
65
56k
RailsConf 2023
tenderlove
30
1.5k
Hiding What from Whom? A Critical Review of the History of Programming languages for Music
tomoyanonymous
2
870
AI in Enterprises - Java and Open Source to the Rescue
ivargrimstad
0
1.3k
How to Build an AI Search Optimization Roadmap - Criteria and Steps to Take #SEOIRL
aleyda
1
2.1k
Un-Boring Meetings
codingconduct
0
320
Lightning talk: Run Django tests with GitHub Actions
sabderemane
0
200
Transcript
Breno Ferreira Escalabilidade de dados e seus desafios https://www.vempraglobo.com.br/
None
None
1K usuários simultâneos?
10K usuários simultâneos?
100K usuários simultâneos?
1 milhão de usuários simultâneos?
Escalabilidade horizontal na nuvem não é infinita?
None
None
None
Caso de uso Registro de username único
None
https://jepsen.io/consistency https://brenocferreira.medium.com/transa%C3%A7%C3%B5es-em-banco-de- dados-aead0cf8b620
Transações ACID
Consenso distribuído
Consenso distribuído é MUITO difícil
• Timeouts • Retries • Circuit Breakers • Detecção de
operações duplicadas • Idempotencia Detecção de falhas
• Como saber qual evento ocorreu primeiro? • Relógios não
con fi áveis • Servidor A: 24/08/21 17:15:0002 • Servidor B: 24/08/21 17:15:0001 • Servidor C: 24/08/21 17:15:0003 Dependências Temporais e Causalidade
Imagine agora esses problemas em DCs distribuídos geograficamente
Existem soluções
Two-Phase Commit
Paxos/Raft
Google Spanner Cockroach DB (open-source)
None
Apache Kafka
Mas será que preciso disso tudo???
None
MUITO provavelmente NÃO!
Alternativas
Replicação
None
Réplicas de leitura tiram a pressão do nó líder, deixando-o
livre para operações de escritas mais custosas (com transações por ex.)
Particionamento
None
🔥🔥🔥
None
None
None
Consistent hashing
None
https://dzone.com/articles/consistent-hashing
Cache
None
Defina Escalabilidade!
• Usuários simultâneos • Tempo de resposta • Latência •
Requests / segundo
Testar Medir Observar
None
None
None
Por que isso é importante?
None
https://brenocferreira.medium.com/designing-data-intensive-apps-um-resumo-a97e47c29372
None
Perguntas?
Obrigado @breno_ferreira https://www.vempraglobo.com.br/