Bug 1283191 (ServiceWorkers-streams)

[meta] Service worker streaming




3 years ago
5 months ago


(Reporter: bkelly, Unassigned)


(Depends on 6 bugs, Blocks 1 bug, {meta})

Firefox Tracking Flags

(Not tracked)


One of the main use cases for streams right now is in service workers.  Even with streams API support, though, we have a number of issues to solve to make streams work well in service workers.  There are a number of places we stop to accumulate data or otherwise don't handle streams quite right.  This meta bug is to track fixing these issues.
Depends on: 1274815
Depends on: 1134372
Depends on: 1147061
Depends on: 1274343
Depends on: 1272697
Depends on: streams
Depends on: 1302715
Stream support in ServiceWorkers is becoming quite important to us at Wikimedia. We recently prototyped streaming HTML composition in a ServiceWorker (see  https://github.com/wikimedia/web-stream-util and https://github.com/wikimedia/node-serviceworker). First performance results in Chrome look really attractive, with reductions in time-to-useful-page especially on slow connections. To provide similar speed-ups & offline support in Firefox, we will need

- a body stream returned from fetch,
- stream support in caches,
- the ability to construct & return a ReadableStream from a ServiceWorker.
I agree we need someone working on this, but unfortunately I don't have the bandwidth right now.
Assignee: bkelly → nobody
Keywords: meta
Depends on: 1216170
Depends on: 1333182
Marking all [meta] bugs as P3.
Priority: -- → P3
Depends on: 1387483
Depends on: 1387503
Depends on: 1388050
No longer depends on: 1216170
Depends on: 1388768
Depends on: 1388774
Depends on: streams-enable
Depends on: 1390638
Depends on: 1400298
No longer depends on: 1388768
No longer depends on: 1390638
You need to log in before you can comment on or make changes to this bug.