Service Workers: Deep Dive

Service Workers bring exciting scenarios such as offline usage and push notifications to the web. This course will cover everything you need to know about Service Workers from their origins, to implementation patterns, to testing considerations.
Course info
Level
Intermediate
Updated
May 8, 2020
Duration
3h 6m
Table of contents
Description
Course info
Level
Intermediate
Updated
May 8, 2020
Duration
3h 6m
Description

Service Workers are a great addition to a web developer’s toolbox - enabling offline scenarios, performance enhancements, scenarios such as Push Notifications, and more! However, with this additional functionality comes complexity and also a few traps to watch out for.

In this course, Service Workers: Deep Dive, you’ll learn everything you need to know to make the most of Service Workers and avoid various pitfalls.

First, you’ll understand the origins of Service Workers, take a deep look at the Service Worker life cycle, and learn about the Cache API and various Caching strategies you can use.

Next, you’ll see various options to communicate with a Service Worker, and also explore Background Sync and Push Notification APIs, which are powered by Service Workers.

Finally, you’ll review Service Worker build and deployment considerations, testing, and third-party libraries such as Workbox.

When you’re finished with this course, you’ll have a deep understanding of Service Workers ensuring that you can make the most of this exciting functionality.

About the author
About the author

Alex works as a Principal consultant for Telstra Purple where he's currently focussed on Web and IoT technologies. He founded a non profit conference called DDD Melbourne and has written a couple of books on .NET.

More from the author
Creating VR Experiences with JavaScript
Intermediate
1h 38m
Jun 2, 2017
Microsoft Edge for Developers
Intermediate
2h 37m
Oct 19, 2015
Section Introduction Transcripts
Section Introduction Transcripts

Course Overview
Hi everyone. My name is Alex Mackey, and welcome to my course, Service Workers: Deep Dive. I work as a principal consultant at Telstra Purple, one of the largest Australian‑owned IT consulting organizations. Service workers are a programmable network proxy that brings functionality, such as offline support, push notifications, and background synchronization, to the web, further blurring the line between what's possible in web and native applications. In this course, we'll take a deep dive into how service workers work, ensuring that you can make full use of the exciting capabilities they bring. Some of the major topics that we will cover include service worker's history and origin, service worker's lifecycle and events, various methods of communicating with service workers, background sync, notification and push APIs, the caching API, and various caching strategies you can employ, considerations around build, deployment, and testing, and third‑party libraries such as UpUp and Workbox. By the end of the course, you'll have a good understanding of how to use service workers, service worker capabilities, various pitfalls to avoid, and tried and trusted implementation patterns. Before beginning the course, you should have an intermediate level of understanding of JavaScript, specifically promises as service workers and some of their related APIs make extensive use of this feature. I hope you'll join me on this journey to learn service workers with the Service Workers: Deep Dive course, at Pluralsight.