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
Modelos de concorrência em Python.
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Diego Garcia
October 17, 2016
Programming
0
180
Modelos de concorrência em Python.
Lightning talk apresentada na Python Brasil 12
Diego Garcia
October 17, 2016
Tweet
Share
More Decks by Diego Garcia
See All by Diego Garcia
Um overview sobre GIT
drgarcia1986
0
47
Modelos de concorrência e paralelismo em Python
drgarcia1986
0
110
Programe para uma interface, não para uma implementação
drgarcia1986
0
190
Bot do Telegram
drgarcia1986
1
220
Boas práticas em REST APIs
drgarcia1986
1
1.4k
Conteinerizando aplicações Python
drgarcia1986
0
460
Testes de carga com Locust
drgarcia1986
1
450
Other Decks in Programming
See All in Programming
AIとペアプロして処理時間を97%削減した話 #pyconshizu
kashewnuts
1
250
Agent Skills Workshop - AIへの頼み方を仕組み化する
gotalab555
15
8.9k
野球解説AI Agentを開発してみた - 2026/02/27 LayerX社内LT会資料
shinyorke
PRO
0
330
AI 開発合宿を通して得た学び
niftycorp
PRO
0
140
どんと来い、データベース信頼性エンジニアリング / Introduction to DBRE
nnaka2992
1
300
Kubernetesでセルフホストが簡単なNewSQLを求めて / Seeking a NewSQL Database That's Simple to Self-Host on Kubernetes
nnaka2992
0
140
Everything Claude Code OSS詳細 — 5層構造の中身と導入方法
targe
0
120
Vuetify 3 → 4 何が変わった?差分と移行ポイント10分まとめ
koukimiura
0
150
クライアントワークでSREをするということ。あるいは事業会社におけるSREと同じこと・違うこと
nnaka2992
1
340
GoのDB アクセスにおける 「型安全」と「柔軟性」の両立 - Bob という選択肢
tak848
0
190
メタプログラミングで実現する「コードを仕様にする」仕組み/nikkei-tech-talk43
nikkei_engineer_recruiting
0
190
エンジニアの「手元の自動化」を加速するn8n 2026.02.27
symy2co
0
160
Featured
See All Featured
Code Review Best Practice
trishagee
74
20k
Ethics towards AI in product and experience design
skipperchong
2
220
Tell your own story through comics
letsgokoyo
1
850
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
162
16k
The State of eCommerce SEO: How to Win in Today's Products SERPs - #SEOweek
aleyda
2
9.9k
Fireside Chat
paigeccino
42
3.8k
The Impact of AI in SEO - AI Overviews June 2024 Edition
aleyda
5
770
The agentic SEO stack - context over prompts
schlessera
0
700
HDC tutorial
michielstock
1
550
XXLCSS - How to scale CSS and keep your sanity
sugarenia
249
1.3M
Breaking role norms: Why Content Design is so much more than writing copy - Taylor Woolridge
uxyall
0
210
Applied NLP in the Age of Generative AI
inesmontani
PRO
4
2.2k
Transcript
Modelos de concorrência em Python. #pybr12
Quem sou eu?
• Desenvolvedor a ~8 anos. • Desenvolvedor web a ~5
anos. • Pythonista a ~3 anos. • Django, Tornado, Aiohttp, etc. • Vimmer (#vim <3). • Aspirante a Gopher (#Golang <3). • Backend developer at LuizaLabs. Diego Garcia
Threads Processos Async 3 modelos principais
Threads Prós • Shared State • Pouco overhead • Operações
de IO Contras • Race Conditions • CPU Bound • GIL • Difícil de testar
Processos Prós • Melhor uso do processador • CPU Bound
• No GIL Contras • No Shared State • Overhead • Pickle • Difícil de testar
Async Prós • Single Thread • Uso efetivo de CPU
• Fácil de testar Contras • Depende de EventLoop • Novos idiomas e paradigma • CPU Bound • GIL
Não seja bitolado! Use a ferramenta certa para o problema
certo.
Obrigado! Se tiverem perguntas me procurem :) Twitter: @drgarcia1986 |
Github: /drgarcia1986