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
190
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Modelos de concorrência em Python.
Lightning talk apresentada na Python Brasil 12
Diego Garcia
October 17, 2016
More Decks by Diego Garcia
See All by Diego Garcia
Um overview sobre GIT
drgarcia1986
0
50
Modelos de concorrência e paralelismo em Python
drgarcia1986
0
110
Programe para uma interface, não para uma implementação
drgarcia1986
0
200
Bot do Telegram
drgarcia1986
1
230
Boas práticas em REST APIs
drgarcia1986
1
1.4k
Conteinerizando aplicações Python
drgarcia1986
0
460
Testes de carga com Locust
drgarcia1986
1
460
Other Decks in Programming
See All in Programming
過去最大のMCPアップデート! 2026-07-28 RC版の謎に迫る
licux
6
360
AI時代のUIはどこへ行く?その2!
yusukebe
22
7.4k
Oxcを導入して開発体験が向上した話
yug1224
4
320
LLMによるContent Moderationの本番運用の裏側と品質担保への挑戦
suikabar
3
710
技術記事、 専門家としてのプログラマ、 言語化
mizchi
13
6.2k
Claspは野良GASの夢をみるか
takter00
0
200
「AIで開発し、AIを届ける」をEvalでつなぐ 〜AIネイティブに始めるプロダクト開発の実践〜 / Connecting "Develop with AI, deliver AI" with Eval
rkaga
4
5.3k
OSもどきOS
arkw
0
570
決定論的オーケストレーションの設計と実装 / Design and Implementation of Deterministic Orchestration
nrslib
4
1.4k
エンジニアと一緒にテストコードの設計と実装を改善した話
mototakatsu
0
200
Spring Security 実践 ─ GraphQL APIで実務に役立つ 認証・認可 を学ぶ
wagyu
0
250
技術記事、AIに書かせるか、自分で書くか? 〜それでも私が自分の手で書く理由〜 / #QiitaConference
jnchito
2
1.4k
Featured
See All Featured
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
38
2.9k
DevOps and Value Stream Thinking: Enabling flow, efficiency and business value
helenjbeal
1
240
Building an army of robots
kneath
306
46k
The Mindset for Success: Future Career Progression
greggifford
PRO
0
360
Bash Introduction
62gerente
615
220k
Mind Mapping
helmedeiros
PRO
1
250
Build The Right Thing And Hit Your Dates
maggiecrowley
39
3.2k
A Soul's Torment
seathinner
6
3k
The Curious Case for Waylosing
cassininazir
1
390
Designing for Timeless Needs
cassininazir
1
260
Collaborative Software Design: How to facilitate domain modelling decisions
baasie
1
250
Stop Working from a Prison Cell
hatefulcrawdad
274
21k
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