entropic-dev/ds

Proof of concept: Synchronous ds <-> dstopic IPC

Open

#14 geöffnet am 9. Nov. 2019

Auf GitHub ansehen
 (6 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Rust (6 Forks)github user discovery
good first issuehelp wanted

Repository-Metriken

Stars
 (53 Stars)
PR-Merge-Metriken
 (PR-Metriken ausstehend)

Beschreibung

One big challenge for the ds/dstopic divide is this idea that there will be a single, long-lived dstopic binary that ds will then communicate with to request data be warmed up. But this comes with a tricky bit: There’s no easy way to do synchronous IPC in Node, and require is a synchronous operation.

So here’s a challenge: We need at -least- a proof of concept of how to send requests from ds to dstopic synchronously. This includes a way to wait for dstopic to be done with its task and send a success response back before the call is over.

Hint: one way to possibly do this is by using fs.writeSync/fs.readSync with a local socket of some sort. I forget the details, but that’s the first avenue I’d explore to accomplish this.

(original thread)

Contributor Guide