Re:Introducing Workers KV
by panic on Friday September 28, 2018 @03:52PM
(#18096495)
Can you implement IPC with this system? It seems wrong to relate this to tuple spaces otherwise.
[ Parent
| on HN ]
A poor man's IPC, like HTTP and HTML is a poor man's application platform ...
Put the target channel name and a message id at the front of each key and you can use a tuple space for IPC.
What I mean is: can a process block until a particular key appears, then resume execution after receiving the associated value? That's the main differentiating feature of a tuple space, and it wasn't clear to me whether this system supports that or not (or even has a concept of a process).
No, that's not supported at present, but that's an interesting idea.
Workers don't have the concept of processes. The unit of compute is an individual event -- e.g. handling an individual HTTP request. So we'd have to augment it a bit, but we can probably come up with something useful.