$30 off During Our Annual Pro Sale. View Details »
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Webworkers by @javierbyte
Search
gdljs
February 24, 2016
Technology
0
31
Webworkers by @javierbyte
Slides de la décima sesión de GDLJS del 23 de Febrero
Webworkers
gdljs
February 24, 2016
Tweet
Share
More Decks by gdljs
See All by gdljs
Construyendo la mejor experiencia de pagos en línea by @IvanChukitow
gdljs
0
73
Testabilidad en Javascript by @codingpains
gdljs
0
36
Desarrollo de aplicaciones con react native by @charliesbox
gdljs
0
130
¿Debería usar la librería de moda en mi proyecto? by @siedrix
gdljs
0
150
Agile Gamification by @chukitow
gdljs
0
56
Por qué hicimos nuestro propio NodeJS framework by @sgarza
gdljs
0
35
¿Cómo empezar a programar? by @amicavi
gdljs
0
94
Concurrencia y Paralelismo en Javascript by @eatcodetravel
gdljs
0
580
Caldo de Kafka para Node by @albertain
gdljs
0
76
Other Decks in Technology
See All in Technology
業務のトイルをバスターせよ 〜AI時代の生存戦略〜
staka121
PRO
2
230
MariaDB Connector/C のcaching_sha2_passwordプラグインの仕様について
boro1234
0
950
AWS re:Invent 2025~初参加の成果と学び~
kubomasataka
0
150
Databricks向けJupyter Kernelでデータサイエンティストの開発環境をAI-Readyにする / Data+AI World Tour Tokyo After Party
genda
1
610
Agent Skillsがハーネスの垣根を超える日
gotalab555
3
1.4k
GitHub Copilotを使いこなす 実例に学ぶAIコーディング活用術
74th
3
3.6k
Connection-based OAuthから学ぶOAuth for AI Agents
flatt_security
0
150
re:Invent 2025 ~何をする者であり、どこへいくのか~
tetutetu214
0
230
ペアーズにおけるAIエージェント 基盤とText to SQLツールの紹介
hisamouna
2
910
AIプラットフォームにおけるMLflowの利用について
lycorptech_jp
PRO
1
180
プロンプトやエージェントを自動的に作る方法
shibuiwilliam
15
15k
AWSの新機能をフル活用した「re:Inventエージェント」開発秘話
minorun365
1
130
Featured
See All Featured
Reflections from 52 weeks, 52 projects
jeffersonlam
355
21k
Ten Tips & Tricks for a 🌱 transition
stuffmc
0
30
The #1 spot is gone: here's how to win anyway
tamaranovitovic
1
860
Visualization
eitanlees
150
16k
Exploring anti-patterns in Rails
aemeredith
2
200
Conquering PDFs: document understanding beyond plain text
inesmontani
PRO
4
2.1k
Designing for Performance
lara
610
69k
How to Build an AI Search Optimization Roadmap - Criteria and Steps to Take #SEOIRL
aleyda
1
1.8k
Typedesign – Prime Four
hannesfritz
42
2.9k
Redefining SEO in the New Era of Traffic Generation
szymonslowik
1
160
The Pragmatic Product Professional
lauravandoore
37
7.1k
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
16
1.8k
Transcript
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.