In the context of Progressive Web Apps (PWA) there are two terms that I am trying to better understand:
- Service Workers, and
- Web Workers.
What is the difference between them and their intended use? Are they similar in any ways? Or may be they are in some relation?
In my current understanding, a Service Worker is truly the foundation of a PWA; i.e. the object which enables a web app as a "registrable" app for mobile platform, allows offline functionality, and so on.
Whereas a Web Worker is an entity which allows [JavaScript] code execution in a background, non-UI thread with all the ensuing consequences (such as no direct DOM manipulation).