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
Webworkers by @javierbyte
Search
gdljs
February 24, 2016
Technology
43
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Webworkers by @javierbyte
Slides de la décima sesión de GDLJS del 23 de Febrero
Webworkers
gdljs
February 24, 2016
Transcript
9 slides
WebWorkers Un nuevo superpoder.
Objetos creados con el constructor Worker que puede ejecutar javascript
arbitrario. ¡Que pueden correr en paralelo y fuera del main thread!
Beneficios. • Ejecución de código que no bloquea la UI.
• Procesamiento en paralelo. • Pueden ser terminados a voluntad. • Capacidad de aislamiento y manejo de errores. • Funciona los navegadores modernos!
A single thread web in a multicore world. La mayoría
de nuestro código en web se ejecuta en un solo thread a pesar de que tenemos teléfonos quad- core por $180 usd.
Basic syntax
Solo te puedes comunicar por mensajes vía “structured clone" O
Transferable interface si eres hardcore.
La interfaz Worker engendra (spawnea?) threads reales a nivel sistema
operativo.
Limitaciones. • No tenemos acceso al DOM, ni compartimos variables
con el thread principal. • Toda la comunicación se hace por mensajes que deben poder ser serializables. ->
Web Workers <3 UI Son cancelables y no bloquean el
thread principal.
More Decks by gdljs
See All by gdljs
Construyendo la mejor experiencia de pagos en línea by @IvanChukitow
gdljs
0
84
Testabilidad en Javascript by @codingpains
gdljs
0
52
Desarrollo de aplicaciones con react native by @charliesbox
gdljs
0
140
¿Debería usar la librería de moda en mi proyecto? by @siedrix
gdljs
0
200
Agile Gamification by @chukitow
gdljs
0
69
Por qué hicimos nuestro propio NodeJS framework by @sgarza
gdljs
0
48
¿Cómo empezar a programar? by @amicavi
gdljs
0
110
Concurrencia y Paralelismo en Javascript by @eatcodetravel
gdljs
0
600
Caldo de Kafka para Node by @albertain
gdljs
0
87
Other Decks in Technology
See All in Technology
Webメール開発を大幅に変えたJMAPというゲームチェンジャー
tascript
1
260
設計手法を「道具」として使いこなすために
a_suenami
7
1.8k
gradle-best-practices 使ってみた
mikanichinose
0
230
AI-Ready なデータ基盤ってなに? & 新卒未経験が、いま考えていること
imuta
0
1.1k
Platform Engineering をベースとした Agentic Software Factory の実践
110y
3
980
2026-11-16 JAWS-UG コンテナ支部 #31 ゆるLT大会 ECR のライフサイクルポリシーを いい感じに設定したい / ECR Lifecycle policy
masasuzu
3
620
Kiro のリモートワークスペース: IDE は手元のままで、ワークスペースをクラウド、コンテナ、自前のマシンに置く
inariku
PRO
1
200
OpenTelemetryで変わった 新時代のCloudWatchメトリクス監視
tsukuboshi
0
500
クラウドでも使えるNetApp -現場目線での設計とクラウドバックアップの活用
ryutakondo
1
330
Agent Routerで作るマルチテナント 推論基盤 #CNDW2026 / Building Multi-Tenant Inference Platform with Agent Router #CNDW2026
everpeace
5
610
[DBRE Summit 26] DBRE はデータベース運用をどう変えたのか
_awache
0
130
Go でトランザクション、どう書いてますか?
knwoop
1
600
Featured
See All Featured
Building Flexible Design Systems
yeseniaperezcruz
330
41k
AI Search: Where Are We & What Can We Do About It?
aleyda
0
8.3k
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
49
3.6k
The B2B funnel & how to create a winning content strategy
katarinadahlin
PRO
1
620
Taking LLMs out of the black box: A practical guide to human-in-the-loop distillation
inesmontani
PRO
3
2.5k
Groundhog Day: Seeking Process in Gaming for Health
codingconduct
0
500
Designing Powerful Visuals for Engaging Learning
tmiket
1
660
Mozcon NYC 2025: Stop Losing SEO Traffic
samtorres
1
610
Crafting Experiences
bethany
1
460
Marketing to machines
jonoalderson
1
6k
Breaking role norms: Why Content Design is so much more than writing copy - Taylor Woolridge
uxyall
2
540
Conquering PDFs: document understanding beyond plain text
inesmontani
PRO
4
3.3k