Benefits of Service Worker

Pirakavi Santhiran
2 min readAug 31, 2020

--

Image source: https://medium.com/swlh/turning-an-angular-app-into-a-pwa-957010736699

Hi Everyone,
I have given an introduction about Service worker and PWA in my before the previous blog. If you would like to go back to that you can refer through this link. Service Worker

1. Push Notifications

Push Notifications are used to alert the user about something. Those are displayed as an icon and a few lines of text to the user. Then the user can click and open the specific destination and view.

The Push notification protocol

2. Offline

Users can access the web pages in offline mode.

3. Load Balancing

The service worker is considered as a load balancer.

Image src: https://codeburst.io/load-balancers-an-analogy-cc64d9430db0

Load balancing refers to the process of distributing network or application traffic across multiple servers. Load balancers are in between clients and server and getting clients requests and passing to an available server.

4. Background Synchronization

This makes it great for ensuring that whatever the user wants to send, is actually sent. The user can go offline and even close the browser, safe in the knowledge that their request will be sent when they regain connectivity.

5. Geo-fencing

Geo-fences will detect when someone comes in or leaves the given region.

Geofences applications :

  1. Security: some geofences are set up to monitor secured areas and allow management to get alerts when anyone enters or leaves the area.
  2. Social Networking: Most of the social networking apps shows nearby places when we use location.
  3. Marketing: It’s helpful to provide ads as a notification to customers when they entered a specific location.
  4. Human Resources: Most of the companies monitor their employees who are working in fieldwork.

Thank you All! I hope you all get some idea about service worker usages.

References :

--

--

Pirakavi Santhiran

The beautiful thing about learning is that nobody can take it away from you