Python websocket server forwards messages from other websocket server

Viewed 634

I receive real time data from websocket server (A). I want to forward that data using another websocket server (B) which will be used to share the data with client (web application).

Instead of relaying on websocket server (A). whenever I receive data from 'A', I will broadcast it to the client using 'B'.

SubscribeToServerA()
While True :
   Server_A_Callback() :
      BroadcastDataViaServerB()
  1. How feasible is this approach ?
  2. Is it good idea to store the data in some database when I received data in Server_A_Callback() ?

I'm complete in newbie to Websockets and Other stuff any other approaches and suggestions are welcome

0 Answers
Related