Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Modelos de concorrência em Python.
Search
Diego Garcia
October 17, 2016
Programming
200
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
Transcript
9 slides
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
More Decks by Diego Garcia
See All by Diego Garcia
Um overview sobre GIT
drgarcia1986
0
53
Modelos de concorrência e paralelismo em Python
drgarcia1986
0
120
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.5k
Conteinerizando aplicações Python
drgarcia1986
0
470
Testes de carga com Locust
drgarcia1986
1
470
Other Decks in Programming
See All in Programming
[DroidKnights 2026] Workflow AX 적용기 — 자동 정책 정리부터 E2E까지
dayeon
0
110
조합이폭발하는디자인시스템이걸눈으로도테스트하라고요
giljongyu
0
780
우리의 Nitro Modules는 당신의 Turbo Modules보다 아름답다
l2hyunwoo
0
270
TanStack Vue Query と Pinia Colada から学ぶ非同期状態の型設計
aoshi
0
690
例外からRich Errorsまで Kotlinエラーハンドリングの進化を読み解く
shiita0903
0
220
将来の標準フォーマッター?ktfmtを深堀る
t45k
0
220
Engineering Biometric UX Across Android Versions | DroidKnights 2026
ryunen344
1
220
Distance field of Julia set
kinakomoti321
0
330
私なりのハーネスエンジニアリング ~独自の言語処理系の開発を通して~
seosoft
0
220
SODA - FACT BOOK(JP)
sodainc
1
40k
Zero-Tap Sign-In対応、結局何をすればいいの?
mitohato14
0
2.5k
社内AIエージェント「Askワンバン」における コストチューニングの取り組み
t0yohei
0
170
Featured
See All Featured
Docker and Python
trallard
47
4.3k
Faster Mobile Websites
deanohume
310
32k
A Modern Web Designer's Workflow
chriscoyier
699
190k
Art, The Web, and Tiny UX
lynnandtonic
304
22k
GitHub's CSS Performance
jonrohan
1033
470k
AI Search: Implications for SEO and How to Move Forward - #ShenzhenSEOConference
aleyda
1
1.4k
Technical Leadership for Architectural Decision Making
baasie
4
650
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
254
23k
AI Search: Where Are We & What Can We Do About It?
aleyda
0
8.2k
Getting science done with accelerated Python computing platforms
jacobtomlinson
2
580
Paper Plane
katiecoart
PRO
6
55k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
37
6.7k