Open Bug 1283191 (ServiceWorkers-streams) Opened 8 years ago Updated 2 years ago

[meta] Service worker streaming

Categories

(Core :: DOM: Service Workers, enhancement, P3)

enhancement

Tracking

()

People

(Reporter: bkelly, Unassigned)

References

(Depends on 6 open bugs)

Details

(Keywords: meta)

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
Status: ASSIGNED → NEW
Depends on: 1216170
Depends on: 1333182
Marking all [meta] bugs as P3.
Priority: -- → P3
Depends on: 1385890
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

I assume, we still want to complete this. :asuth, can you check if the dependencies are up to date?

Type: defect → enhancement
Flags: needinfo?(bugmail)

Deps are up-to-date although we will probably need to file some additional bugs when we really dig into the architecture of this, but that's a multi-day affair. (Maybe this should happen as part of the architectural review?)

Flags: needinfo?(bugmail)
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.