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
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
36
¿Cómo empezar a programar? by @amicavi
gdljs
0
94
Concurrencia y Paralelismo en Javascript by @eatcodetravel
gdljs
0
590
Caldo de Kafka para Node by @albertain
gdljs
0
76
Other Decks in Technology
See All in Technology
AI駆動開発を事業のコアに置く
tasukuonizawa
1
180
AIと新時代を切り拓く。これからのSREとメルカリIBISの挑戦
0gm
0
900
Introduction to Bill One Development Engineer
sansan33
PRO
0
360
GitLab Duo Agent Platform × AGENTS.md で実現するSpec-Driven Development / GitLab Duo Agent Platform × AGENTS.md
n11sh1
0
130
20260204_Midosuji_Tech
takuyay0ne
1
150
MCPでつなぐElasticsearchとLLM - 深夜の障害対応を楽にしたい / Bridging Elasticsearch and LLMs with MCP
sashimimochi
0
170
15 years with Rails and DDD (AI Edition)
andrzejkrzywda
0
190
茨城の思い出を振り返る ~CDKのセキュリティを添えて~ / 20260201 Mitsutoshi Matsuo
shift_evolve
PRO
1
260
マーケットプレイス版Oracle WebCenter Content For OCI
oracle4engineer
PRO
5
1.6k
Context Engineeringが企業で不可欠になる理由
hirosatogamo
PRO
3
570
Amazon S3 Vectorsを使って資格勉強用AIエージェントを構築してみた
usanchuu
3
450
Agile Leadership Summit Keynote 2026
m_seki
1
610
Featured
See All Featured
コードの90%をAIが書く世界で何が待っているのか / What awaits us in a world where 90% of the code is written by AI
rkaga
60
42k
Noah Learner - AI + Me: how we built a GSC Bulk Export data pipeline
techseoconnect
PRO
0
110
Designing Experiences People Love
moore
144
24k
Technical Leadership for Architectural Decision Making
baasie
1
240
A designer walks into a library…
pauljervisheath
210
24k
We Have a Design System, Now What?
morganepeng
54
8k
Exploring anti-patterns in Rails
aemeredith
2
250
RailsConf 2023
tenderlove
30
1.3k
Paper Plane (Part 1)
katiecoart
PRO
0
4.2k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
508
140k
How to build a perfect <img>
jonoalderson
1
4.9k
Fantastic passwords and where to find them - at NoRuKo
philnash
52
3.6k
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.