TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Now That’s What I Call Service Worker

2 点作者 mot2ba大约 4 年前

1 comment

PaulHoule大约 4 年前
If you want to know why Service Workers are &quot;little used&quot; this article explains why -- in theory you could do all sorts of things with service workers but it is awkward coding and a lot of work.<p>Some say that Service Workers are &quot;threadsafe&quot; because they never share objects, they copy or transfer ownership.<p>You still have &quot;concurrency&quot; problems because the Service Worker is part of a distributed system where there is state on the client and in the service worker and in the workers that the service worker runs to subdivide the work, and on the back-end server, etc.<p>It is one thing to make it correct, it is another thing to make it really perform better than the status quo.