Re: [slightlyoff/ServiceWorker] consider allowing multiple worker thread instances for a single registration (#756)

It would be good to have some kind of _shared memory_ for SW. That amount of _shared storage_ (possibly with some limit like `localStorage`) will always be in _memory_ until at least on _client_ of a _registration_ is alive. When all _clients_ of a _registration_ are shut down, then this memory could be written to a disk, and then again restored on a _registration_'s client startup.

SharedWorker seems very similar to it, but if it has to be a SharedWorker, then such worked should be alive a the time while either SW is alive or any of SW's _registration_ _clients_, so pages could access it too (e.g. in a previous case of flags -- set flags).

Also if it would be _kind of a shared memory_, then should be opt-in, as SharedWorker is.


---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/slightlyoff/ServiceWorker/issues/756#issuecomment-238027778

Received on Saturday, 6 August 2016 15:10:10 UTC