lava icon indicating copy to clipboard operation
lava copied to clipboard

Multiple Ref-/VarPort connections

Open PhilippPlank opened this issue 4 years ago • 4 comments

Currently a RefPort can only be connected to exactly one VarPort (1:1 connection).

Enabling 1:many connections to set multiple Vars

Open questions:

  • What should the encoding of the RefPort read look like, when receiving data from multiple Vars? (maybe [Var1, data1, Var2, data2, ...])
  • How useful is this feature?

PhilippPlank avatar Nov 15 '21 23:11 PhilippPlank

Reading from multiple Vars through one RefPort is likely not useful at all. But writing would just mean we duplicate the written data.

In turn this means, that connecting to multiple Vars implies that we cannot write on a RefPort.

awintel avatar Nov 16 '21 01:11 awintel

Issue #59 should be done in parallel when implementing this issue.

PhilippPlank avatar Nov 16 '21 09:11 PhilippPlank

Reading from multiple Vars through one RefPort is likely not useful at all. But writing would just mean we duplicate the written data.

In turn this means, that connecting to multiple Vars implies that we cannot write on a RefPort.

You mean that a RefPort connected to multiple Vars should only be able to write data to the Vars, but not be able to read anything.

I assume the RefPort should then be able to connect to multiple Vars of different destination processes?

PhilippPlank avatar Nov 16 '21 09:11 PhilippPlank

Yes, that seems conceivable once we have the corresponding infrastructure in place that reads would not be possible in this case.

awintel avatar Nov 16 '21 20:11 awintel