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
170
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
31
Modelos de concorrência e paralelismo em Python
drgarcia1986
0
74
Programe para uma interface, não para uma implementação
drgarcia1986
0
190
Bot do Telegram
drgarcia1986
1
210
Boas práticas em REST APIs
drgarcia1986
1
1.3k
Conteinerizando aplicações Python
drgarcia1986
0
300
Testes de carga com Locust
drgarcia1986
1
370
Other Decks in Programming
See All in Programming
Ruby GitHub Packages
bkuhlmann
0
620
PHP8.3の機能を振り返る / Review of PHP 8.3 features
seike460
PRO
1
110
ONE WEDGE_company_guide
1wedge_one
0
370
CircleCIを活用して AWSへの継続的デリバリーを 実践する
coconala_engineer
1
230
Ruby Pattern Matching
bkuhlmann
0
920
チーム力を高めるスクラム実践法:カンバン公開と課題攻略について - ニフティのスクラムトーク Vol. 2 - NIFTY Tech Talk #18
niftycorp
PRO
1
110
Hanami and htmx
bkuhlmann
0
190
オブジェクト指向のリ・オリエンテーション~歴史を振り返り、AI時代に向きなおる~
hanyudaeiiti
9
5.6k
From Spring Boot 2 to Spring Boot 3 with Java 22 and Jakarta EE
ivargrimstad
0
880
Zero Waste, Radical Magic, and Italian Graft – Quarkus Efficiency Secrets
hollycummins
0
220
Front-end application development, Symfony-style(s)
dunglas
2
1.9k
Site Reliability Engineering for GMO
pyama86
6
910
Featured
See All Featured
How STYLIGHT went responsive
nonsquared
92
4.8k
Code Review Best Practice
trishagee
54
15k
How To Stay Up To Date on Web Technology
chriscoyier
782
250k
YesSQL, Process and Tooling at Scale
rocio
163
13k
Being A Developer After 40
akosma
56
580k
A Philosophy of Restraint
colly
196
16k
Large-scale JavaScript Application Architecture
addyosmani
503
110k
A Tale of Four Properties
chriscoyier
150
22k
Creatively Recalculating Your Daily Design Routine
revolveconf
209
11k
Statistics for Hackers
jakevdp
789
220k
Atom: Resistance is Futile
akmur
258
25k
What’s in a name? Adding method to the madness
productmarketing
PRO
15
2.6k
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