I would like to have an akka-stream operator with two inlets. On one inlet it receives metadata about messages. On the second inlet the messages themselves.
The problem is that while metadata is received for one message at a time, messages are grouped in batches.
I would like an operator that accumulates all the metadata on the first port, such that when the message batch comes in the second port, the operator emits two batches (possibly zipped).
The obvious solution would be to just use Zip
and group the metadata upstream. But the problem is that the size of the batches is unknown.