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
29
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
72
Testabilidad en Javascript by @codingpains
gdljs
0
35
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
140
Agile Gamification by @chukitow
gdljs
0
54
Por qué hicimos nuestro propio NodeJS framework by @sgarza
gdljs
0
34
¿Cómo empezar a programar? by @amicavi
gdljs
0
93
Concurrencia y Paralelismo en Javascript by @eatcodetravel
gdljs
0
580
Caldo de Kafka para Node by @albertain
gdljs
0
75
Other Decks in Technology
See All in Technology
Claude Code Subagents 再入門 ~cc-sddの実装で学んだこと~
gotalab555
10
16k
Oracle Base Database Service 技術詳細
oracle4engineer
PRO
12
81k
Codexとも仲良く。CodeRabbit CLIの紹介
moongift
PRO
1
240
Databricks AI/BI Genie の「値ディクショナリー」をAmazonの奥地(S3)まで見に行く
kameitomohiro
1
180
dbtとBigQuery MLで実現する リクルートの営業支援基盤のモデル開発と保守運用
recruitengineers
PRO
3
120
サイバーエージェント流クラウドコスト削減施策「みんなで金塊堀太郎」
kurochan
4
2.1k
AWS Control Tower に学ぶ! IAM Identity Center 権限設計の第一歩 / IAM Identity Center with Control Tower
y___u
1
200
All About Sansan – for New Global Engineers
sansan33
PRO
1
1.2k
現場データから見える、開発生産性の変化コード生成AI導入・運用のリアル〜 / Changes in Development Productivity and Operational Challenges Following the Introduction of Code Generation AI
nttcom
0
200
Introdução a Service Mesh usando o Istio
aeciopires
0
200
難しいセキュリティ用語をわかりやすくしてみた
yuta3110
0
300
AI時代におけるデータの重要性 ~データマネジメントの第一歩~
ryoichi_ota
0
700
Featured
See All Featured
The Straight Up "How To Draw Better" Workshop
denniskardys
238
140k
The Pragmatic Product Professional
lauravandoore
36
6.9k
Building Applications with DynamoDB
mza
96
6.7k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
140
34k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
285
14k
Embracing the Ebb and Flow
colly
88
4.9k
Stop Working from a Prison Cell
hatefulcrawdad
271
21k
Measuring & Analyzing Core Web Vitals
bluesmoon
9
620
GraphQLの誤解/rethinking-graphql
sonatard
73
11k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
234
17k
The Cost Of JavaScript in 2023
addyosmani
55
9k
Reflections from 52 weeks, 52 projects
jeffersonlam
353
21k
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.