Performance·Intermediate·Conceptual·1 min read
What is the difference between dedicated, shared, and service workers?
Short interview answer
A dedicated worker belongs to one creator, a shared worker can connect multiple same-origin contexts where supported, and a service worker is an event-driven network proxy with a distinct lifecycle. They solve different ownership and platform problems.
Key takeaway
Explain the underlying mental model clearly, then support it with a concrete example and its trade-offs.