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


Has it been useful?

Tell us what you think of this recipe by leaving a comment!