Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

Latest commit

 

History

History

load-balancer

Load balancer

This recipe shows a Service Worker containing network logic to dynamically select the best content provider accordingly to server availability.

Difficulty

Intermediate

Use case

As a service provider, I want to provide the best source in terms of availability for a selected resource.

Solution

Use a Service Worker to intercept the requests to the resources and select the proper content provider accordingly to their availability.

Category

Beyond Offline