Service Workers - Integrating a Database

preview_player
Показать описание
This is the ninth video in the Understanding Service Worker series.
This video focuses on how you can integrated an indexed DB with your website and your Service Worker. This lets you read data from the web page and give control over saving, deleting and updating your database to your Service Worker.

Рекомендации по теме
Комментарии
Автор

IndexedDB and service worker altogether. The big picture. There's a lot to cover in the topic of PWA. Thanks a lot for this, Steve! 👍

blokche_dev
Автор

awesome tutorial series and voice which helps us concentrate on the tutorial.
I have learnt a lot apart from service workers. I did not even know promise.resolve existed. Now i am digging the mdn docs, thanks to you.

wallurisatya
Автор

This was wonderful. Thank you so much for sharing this. This makes getting up and running so much easier, and i always understand better when i have a reasonable starting point. You have great content.

justavian
Автор

Thanks Steve. Great work and dedication as always. This videos will help someone in the near future 🔥🔥🔥🔥

senseicodes
Автор

that was the best tutorial on indexdb.. all the best

sangramsingha
Автор

Hi Steve, I am working on a video call applicatiion where we record the screen and upload it to S3 whenever user stops sharing But I want to make that video to be uploaded after the call is end. So I am storing the blob data in Indexed DB. How could I upload them to server after usel close the tab. Is it possible to do so using service worker?

BeatBustersDance
Автор

I got the task, where I my logger as Singleton push all data into idb from main thread, and I need to get the data from SW. When I import the same singleton logger to SW and tried to get data from idb, what recorder from main thread, I just got nothing (empty fields). And I though it could be because SW and main thread have different idb storages in browser, and SW can't get data from main thread idb without postmessage

Could you please explain how it works and why my method doesn't work?

dobernike_
Автор

How did the author open the database from the service worker? Why am I encountering the error 'window is not defined'?
const request = indexedDB.open('todosDB');

xSxVKaJnwQ
Автор

hi Steve, I wanted to ask you how IDB works when you set network as offline. I had my IDB setup and stores data but when I set the network to offline in developer settings, the IDB is blank. When I set it back to online, the data is back. What is this issue, that I'm dealing with, can you please help?

KingKzTuts
Автор

Excellent, thanks :) have you done something on syncing back to the server after being off line? Conflict checking and the like….

m
Автор

awesome content as always. quick question : is there benefit to pass from form to sw then to indexedb 1st instead just make it direct to indexedb?

fsbgaming