I am new to akka-streams and do not know how to approach this problem.
I have 3 source streams sorted by sequence id. I want to group values ββtogether that have the same identifier. Values ββin each stream may be missing or duplicated. If one thread is a faster producer than the rest, it should get back pressure.
case class A(id: Int) case class B(id: Int) case class C(id: Int) case class Merged(as: List[A], bs: List[B], cs: List[C]) import akka.stream._ import akka.stream.scaladsl._ val as = Source(List(A(1), A(2), A(3), A(4), A(5))) val bs = Source(List(B(1), B(2), B(3), B(4), B(5))) val cs = Source(List(C(1), C(1), C(3), C(4))) val merged = ???
source share