endojs / endo

Endo is a distributed secure JavaScript sandbox, based on SES
Apache License 2.0
816 stars 71 forks source link

Minimal pubsub from `@endo/stream` #1444

Open kriskowal opened 1 year ago

kriskowal commented 1 year ago

The Endo Dæmon packages/daemon needs a minimal pubsub mechanism which can be based on the @endo/stream async iterator design using three possible variations on an async singly-linked-list queue:

I’ve created this ticket to track work ongoing in #1432.

kriskowal commented 8 months ago

We decided this was the the form of pubsub that we wanted to expose in the Pet Dæmon. It’s currently living as an exported library of the daemon until it can be replaced with the notifiers from Agoric.

I’m inclined at this point to bring this idea back into @endo/streams and find a forward-compatibility story that allows things that currently can be iterated to eventually have proper pub-sub on the wire by dint of an alternate light-client. attn @michaelfig