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
Web Workers & Service Workers
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Lucas Santos
July 07, 2019
Programming
76
2
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Web Workers & Service Workers
Lucas Santos
July 07, 2019
More Decks by Lucas Santos
See All by Lucas Santos
The Hitchhiker's Guide for an Amazing API with TypeScript
khaosdoctor
0
140
Escalando globalmente com TypeScript e JavaScript na Klarna
khaosdoctor
0
230
The future of JavaScript
khaosdoctor
0
100
TypeScript tips that could save your life
khaosdoctor
0
270
É hora de falar sobre Deno
khaosdoctor
0
99
JS Software testing for beginners
khaosdoctor
0
110
Ambientes dinâmicos com GitHub Actions
khaosdoctor
0
77
The Dark Side of JavaScript
khaosdoctor
0
110
Integrating Containers Into JavaScript
khaosdoctor
0
98
Other Decks in Programming
See All in Programming
外から家のPCの電源入れたい!をPHPで解決する
kawashimo0
1
130
月間100万人のサービス刷新で、 技術選定をHonoに振り切った話
yutobara
8
6.5k
Event is what happens
moro
2
490
golang-bob.pdf
iwatsukayura
0
130
UPDATE をやめる — EF Core でマスタをバージョン管理する
panda728
PRO
0
1.2k
【加筆修正版】Laravel のアプリケーションをどこにデプロイするか #phpcon_ehime
akase244
0
150
ChromeでローカルLLM
ryu1013
0
130
Optunaを作ったときにやりたかったこと、その後 (2026/10/16, Optuna Meetup #3)
iwiwi
1
330
速習iPhone Duo対応
yuukiw00w
2
980
ソニーのクラウド共通基盤の変遷とAI時代の開発スタイルに合わせた進化 / The Journey of Sony’s Common Cloud Platform and Its Evolution for AI-Native Development
kenjiyoneyama
0
250
TechTown - Creating Composable Callables in Contemporary C++
rollbear
0
110
Unity6 URPによる海底をテーマにしたVJシステムの解説 | Unity Shader 完全に理解した 勉強会
gam0022
0
360
Featured
See All Featured
HTML-Aware ERB: The Path to Reactive Rendering @ RubyCon 2026, Rimini, Italy
marcoroth
5
810
The Limits of Empathy - UXLibs8
cassininazir
2
720
More Than Pixels: Becoming A User Experience Designer
marktimemedia
3
560
Kristin Tynski - Automating Marketing Tasks With AI
techseoconnect
PRO
0
550
Rails Girls Zürich Keynote
gr2m
96
14k
Darren the Foodie - Storyboard
khoart
PRO
4
4k
What the history of the web can teach us about the future of AI
inesmontani
PRO
2
740
Facilitating Awesome Meetings
lara
57
7.2k
Future Trends and Review - Lecture 12 - Web Technologies (1019888BNR)
signer
PRO
0
3.8k
Context Engineering - Making Every Token Count
addyosmani
9
1.2k
Music & Morning Musume
bryan
48
7.4k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
133
20k
Transcript
Web Workers e Service Workers
senior solutions architect_ quem sou eu_ /khaosdoctor @_staticvoid lsantos.dev @khaosdoctor
nindoo.ai
obarra.co trainingcenter.io abcdevelopers.org
slsweek.netlify.com
Web Workers
O JavaScript é assíncrono
Em uma thread...
Antes dos Web Workers
Manipulação de DOM Requests de API Interação de usuário Processamento
pesado Próximos eventos
Depois dos Web Workers
Manipulação de DOM Requests de API Interação de usuário Próximos
eventos Processamento pesado
Web workers nos permitem criar threads paralelas no JavaScript
Arquivos externos
Comunicação por mensagens
None
None
demo
https://lsantos-web-workers.now.sh/
- dedicated workers - shared workers
Service Workers
Ciclo de vida
Download Installation Activation
update
None
Escopo
None
Principais usos
Gerenciamento de cache
Push Notifications
PWAs
demo
https://lsantos-service-workers.now.sh/
referências_ - https://lsantos-web-workers.now.sh/ - https://auth0.com/blog/speedy-introduction-to-web-workers/ - https://braziljs.org/blog/javascript-multi-threading-com-web-workers-2/ - https://pt.stackoverflow.com/questions/240661/qual-é-a-diferença-entre-service-worker-e-web-worker -
https://pt.stackoverflow.com/questions/46926/o-que-s%C3%A3o-web-workers-e-como-utiliz%C3%A1-los - https://www.w3schools.com/html/html5_webworkers.asp - https://www.html5rocks.com/pt/tutorials/workers/basics/ - https://developer.mozilla.org/pt-BR/docs/Web/API/Worker - https://blog.sessionstack.com/how-javascript-works-the-building-blocks-of-web-workers-5-cases-when-you-should-use-them-a5 47c0757f6a - https://github.com/khaosdoctor/web-workers-and-service-workers - https://serviceworke.rs/ - https://blog.sessionstack.com/how-javascript-works-service-workers-their-life-cycle-and-use-cases-52b19ad98b58
/khaosdoctor @_staticvoid lsantos.dev @khaosdoctor obrigado_