akka-http websocket : Multiple channel for accessing data from different db -


i working akka graph api build websocket multiple channels. 1 channel using akka streaming api consume data kafka , sending through websocket channel ui. whereas 1 accessing data database , sending data through different channel ui , 3rd scenario have merge data kafka + db , send through different channel.

i have finished implementing streaming part , able consume data in ui through websocket. 2nd , 3rd case not trying figure out how provide separate channel.

kafka ~> consumer ~> websocket ~> ui  db ~> db client ~> websocket ~>ui  kafka ~> consumer ~>|                     | websocket (merge data) ~> ui  db ~> db client ~>  |                     |         

since pretty new akka streaming api trying figure out best practice achieve same proper tests. pointers same appreciated.


Comments

Popular posts from this blog

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -