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
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
44
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
2026年 エンジニアリング自己学習法
yumechi
0
130
HTTPプロトコル正しく理解していますか? 〜かわいい猫と共に学ぼう。ฅ^•ω•^ฅ ニャ〜
hekuchan
2
690
AIと一緒にレガシーに向き合ってみた
nyafunta9858
0
230
MUSUBIXとは
nahisaho
0
130
CSC307 Lecture 07
javiergs
PRO
0
550
Basic Architectures
denyspoltorak
0
670
カスタマーサクセス業務を変革したヘルススコアの実現と学び
_hummer0724
0
690
なるべく楽してバックエンドに型をつけたい!(楽とは言ってない)
hibiki_cube
0
140
例外処理とどう使い分ける?Result型を使ったエラー設計 #burikaigi
kajitack
16
6.1k
Best-Practices-for-Cortex-Analyst-and-AI-Agent
ryotaroikeda
1
100
コントリビューターによるDenoのすゝめ / Deno Recommendations by a Contributor
petamoriken
0
200
ぼくの開発環境2026
yuzneri
0
210
Featured
See All Featured
HU Berlin: Industrial-Strength Natural Language Processing with spaCy and Prodigy
inesmontani
PRO
0
210
Abbi's Birthday
coloredviolet
1
4.7k
SEO Brein meetup: CTRL+C is not how to scale international SEO
lindahogenes
0
2.3k
Redefining SEO in the New Era of Traffic Generation
szymonslowik
1
210
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
141
34k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
367
27k
Evolving SEO for Evolving Search Engines
ryanjones
0
120
Mozcon NYC 2025: Stop Losing SEO Traffic
samtorres
0
140
Fireside Chat
paigeccino
41
3.8k
Google's AI Overviews - The New Search
badams
0
900
Building AI with AI
inesmontani
PRO
1
690
Believing is Seeing
oripsolob
1
54
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